{"id":2366,"date":"2019-04-22T08:39:16","date_gmt":"2019-04-22T08:39:16","guid":{"rendered":""},"modified":"2019-04-22T16:39:36","modified_gmt":"2019-04-22T08:39:36","slug":"mcs-51%e5%8d%95%e7%89%87%e6%9c%ba%e5%ae%9e%e7%8e%b0%e4%b8%8einternet%e4%ba%a4%e4%ba%92%e7%9a%84%e8%ae%be%e8%ae%a1","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2366","title":{"rendered":"MCS-51\u5355\u7247\u673a\u5b9e\u73b0\u4e0eInternet\u4ea4\u4e92\u7684\u8bbe\u8ba1"},"content":{"rendered":"

\n\t\u5b9e\u73b0MCS-51\u5355\u7247\u673a<\/u>\u5d4c\u5165\u5f0f\u63a5\u5165Inte<\/u>rnet \u6280\u672f\u3002\u5355\u7247\u673a\u901a\u8fc7ATL8019AS \u4ee5\u592a\u7f51<\/u>\u63a7\u5236\u5668\u5b9e\u73b0\u4e0eInternet \u7684\u4ea4\u4e92\u3002\u5229\u7528\u5f00\u6e90\u4ee3\u7801\u7684TCP\/IP \u534f\u8bae\u6808uIP \u5b9e\u73b0\u5bf9\u5e95\u5c42\u8bbe\u5907\u7684\u9a71\u52a8\uff0c\u540c\u65f6\u901a\u8fc7uIP \u534f\u8bae\u7684\u5e94\u7528\u7a0b\u5e8f\u63a5\u53e3\u5b9e\u73b0\u5404\u79cd\u5e94\u7528\u670d\u52a1\u3002\u7ed9\u51fa\u4e86\u786c\u4ef6\u8bbe\u8ba1\u56fe\uff0c\u7f16\u5199\u4e86\u5355\u7247\u673a\u4e3b\u7a0b\u5e8f\u3002\u5e94\u7528\u6b64\u6280\u672f\u5b9e\u73b0\u4e86\u4e00\u4e2a\u57ce\u5e02\u4e2d\u5fc3\u505c\u8f66\u76d1\u6d4b\u7cfb\u7edf\u3002<\/p>\n

\n\t\u8fd1\u5e74\u6765\u4ee5\u5355\u7247\u673a\uff08MI<\/u>CroComputerUnit\uff0cMCU<\/u>\uff09\u4e3a\u4ee3\u8868\u7684\u5d4c\u5165\u5f0f\u7cfb\u7edf\u5728\u5de5\u4e1a\u63a2\u6d4b\u7cfb\u7edf\u3001\u667a\u80fd\u4eea\u5668\u3001\u5b89\u9632\u7cfb\u7edf\u3001\u667a\u80fd\u5bb6\u7535\u548c\u4fe1\u606f\u5bb6\u7535\u9886\u57df\u5f97\u5230\u4e86\u5e7f\u6cdb\u5e94\u7528\u3002<\/p>\n

\n\t <\/div>\n

\n\t\u5982\u679c\u5d4c\u5165\u5f0f\u7cfb\u7edf\u80fd\u591f\u8fde\u63a5\u5230Internet \u4e0a\uff0c\u5219\u7528\u6237\u53ef\u4ee5\u65b9\u4fbf\u3001\u5feb\u6377\u3001\u4f4e\u5ec9\u5730\u901a\u8fc7\u7f51\u7edc\u8fdb\u884c\u8fdc\u7a0b\u63a7\u5236\u3001\u76d1\u6d4b\u548c\u4fe1\u606f\u4f20\u9001\u3002Internet \u6280\u672f\u548c\u5d4c\u5165\u5f0f\u6280\u672f\u7684\u76f8\u4e92\u878d\u5408\uff0c\u4e0d\u4ec5\u4e3a\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7684\u8bbe\u8ba1\u548c\u5f00\u53d1\u5e26\u6765\u4e86\u524d\u6240\u672a\u6709\u7684\u53d1\u5c55\u7a7a\u95f4\u548c\u673a\u9047\uff0c\u4e5f\u4f7f\u5f97 Internet \u5e94\u7528\u8fdb\u5165\u4e86\u5d4c\u5165\u5f0fInternet \u65f6\u4ee3\u3002\u636e\u4e13\u5bb6\u9884\u6d4b\uff0c\u672a\u6765\u5728 Internet \u4e0a\u7684\u65b0\u589e\u4e1a\u52a1\u548c\u5e94\u7528\u4e2d\uff0c\u5c06\u6709 45%\u7684\u589e\u957f\u6765\u81ea\u4e8e\u5c0f\u578b\u5d4c\u5165\u5f0f\u7cfb\u7edf\u3002\u56e0\u6b64\uff0c\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7684 Internet \u63a5\u5165\u6280\u672f\uff0c\u5c06\u4f1a\u6709\u6781\u5176\u5e7f\u9614\u7684\u5e94\u7528\u524d\u666f\u3002\u5982\u4f55\u5229\u7528\u5355\u7247\u673a\u63a5\u5165Internet \u7f51\u7edc\u6210\u4e3a\u672a\u6765\u6700\u70ed\u95e8\u7684\u6280\u672f\u4e4b\u4e00\u3002<\/p>\n

\n\t1 \u5355\u7247\u673a\u5d4c\u5165\u5f0fInternet\u63a5\u5165\u6280\u672f<\/p>\n

\n\tInternet \u7f51\u7edc\u901a\u4fe1\u4e2d\uff0cTCP\/IP \u534f\u8bae\u7c07\u975e\u5e38\u5e9e\u5927\uff0c\u9700\u8981\u5360\u7528\u5927\u91cf\u7684\u7cfb\u7edf\u8d44\u6e90\u3002\u5355\u7247\u673a\u7684\u7f3a\u70b9\u662f\u8d44\u6e90\u6709\u9650\uff0c\u65e0\u6cd5\u5bb9\u7eb3\u4e0bInternet \u7684TCP\/IP \u534f\u8bae\u7c07\u3002\u56e0\u6b64\u5355\u7247\u673a\u5b9e\u73b0\u5d4c\u5165\u5f0f\u63a5\u5165Internet \u6280\u672f\u7684\u5173\u952e\u662f\u5982\u4f55\u5728\u5355\u7247\u673a\u7b49\u5d4c\u5165\u5f0f\u8bbe\u5907\u7684\u6709\u9650\u8d44\u6e90\u4e0a\u5b9e\u73b0Internet \u7684\u7f51\u7edc\u901a\u4fe1\u534f\u8bae\u6808\u3002\u5176\u96be\u70b9\u5728\u4e8e\uff1a\u5982\u4f55\u5229\u7528\u5355\u7247\u673a\u81ea\u8eab\u6709\u9650\u7684\u8d44\u6e90\u5bf9\u4fe1\u606f\u8fdb\u884cTCP\/IP \u534f\u8bae\u5904\u7406\uff0c\u4f7f\u4e4b\u53d8\u6210\u53ef\u4ee5\u5728Internet \u4e0a\u4f20\u8f93\u7684IP \u6570\u636e\u5305\u3002\u76ee\u524d\u8bb8\u591a\u7814\u7a76\u673a\u6784\u90fd\u5728\u79ef\u6781\u63a2\u8ba8\u5229\u7528MCU \u5b9e\u73b0\u63a5\u5165Internet \u6280\u672f\uff0c\u51fa\u73b0\u4e86\u591a\u79cd\u5355\u7247\u673a\u5d4c\u5165\u5f0fInternet \u6280\u672f\u65b9\u6848\uff0c\u8fd9\u4e9b\u6280\u672f\u5b9e\u73b0\u65b9\u6848\u53ef\u4ee5\u5f52\u4e3a\u4ee5\u4e0b\u51e0\u7c7b\u3002<\/p>\n

\n\t\uff081\uff09 \u4f7f\u7528\u4e13\u7528\u7684\u5d4c\u5165\u5f0f\u82af\u7247\u3002\u4e13\u7528\u5d4c\u5165\u5f0f\u82af\u7247\u662f\u4e00\u79cd\u5185\u7f6e\u4e86\u901a\u4fe1\u548c\u63a7\u5236\u529f\u80fd\u7684\u5355\u7247\u673a\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5b9e\u65f6\u591a\u4efb\u52a1\u64cd\u4f5c\u3002\u6bd4\u4f20\u7edf\u7684\u5355\u7247\u673a\u786c\u4ef6\u63d0\u4f9b\u66f4\u5f3a\u7684\u7cfb\u7edf\u8bbe\u8ba1\u7075\u6d3b\u6027\u3002\u8fd9\u6837\u7684\u82af\u7247\u6709Ubicom \u516c\u53f8\u7684IP2022\u82af\u7247\uff0cMOXA \u516c\u53f8\u7684Nport Express \u82af\u7247\u7b49\u3002\u8fd9\u7c7b\u82af\u7247\u529f\u80fd\u5f3a\uff0c\u80fd\u591f\u5b9e\u73b0\u591a\u79cd\u7f51\u7edc\u534f\u8bae\uff0c\u4e00\u822c\u63d0\u4f9b\u6709\u76f8\u5e94\u7684TCP\/IP \u7f51\u7edc\u534f\u8bae\u6808\u3002\u4f46\u662f\u8fd9\u79cd\u82af\u7247\u4ef7\u683c\u504f\u9ad8\uff0c\u7528\u6237\u9700\u8981\u652f\u4ed8\u8f6f\u786c\u4ef6\u8d39\u7528\uff0c\u4e0d\u6613\u4e8e\u5b9e\u73b0\u5e02\u573a\u7684\u5e7f\u6cdb\u5e94\u7528\u3002<\/p>\n

\n\t\uff082\uff09 \u5d4c\u5165\u5f0f\u7cfb\u7edf\u7ec4\u6210\u4e13\u7528\u7f51\u901a\u8fc7PC \u7f51\u5173\u63a5\u5165Internet.\u5c0f\u578b\u5d4c\u5165\u5f0f\u7cfb\u7edf\u901a\u8fc7\u603b\u7ebf\u6280\u672f\u7ec4\u6210\u4e13\u7528\u7f51\u7edc\uff0c\u91c7\u7528\u4e00\u4e2aPC \u673a\u4f5c\u4e3a\u7f51\u5173\uff0c\u8be5 PC \u5c06\u4e13\u7528\u7f51\u53d1\u9001\u6765\u7684\u4fe1\u606f\u901a\u8fc7\u4e13\u7528\u8f6f\u4ef6\u8f6c\u6362\u4e3aTCP\/IP \u534f\u8bae\u6570\u636e\u5305\uff0c\u7136\u540e\u53d1\u5230 Internet \u4e0a\u4ee5\u5b9e\u73b0\u8fdc\u7a0b\u901a\u4fe1\u3002\u8be5\u65b9\u6848\u662f\u65e9\u671f\u91c7\u7528\u5f97\u8f83\u591a\u7684\u6280\u672f\u3002\u4f46\u662f\u8fd9\u79cd\u65b9\u6848\u7684\u7f3a\u70b9\u662f\u8981\u4f7f\u7528\u4e00\u53f0\u4e13\u7528\u7684PC \u673a\uff0c\u663e\u7136\u5b83\u53ea\u9002\u7528\u4e8e\u67d0\u4e9b\u5de5\u4e1a\u6570\u636e\u91c7\u96c6\u7cfb\u7edf\uff0c\u4e0d\u6613\u4e8e\u5411\u4fe1\u606f\u5bb6\u7535\u548c\u7f51\u7edc\u5316\u667a\u80fd\u4eea\u5668\u4eea\u8868\u7b49\u9886\u57df\u63a8\u5e7f\u3002<\/p>\n

\n\t\uff083\uff09 \u4f7f\u7528\u666e\u901a\u5355\u7247\u673a\u548c\u7f51\u7edc\u63a7\u5236\u82af\u7247\u3002\u8fd9\u79cd\u65b9\u6cd5\u5b9e\u73b0\u8d77\u6765\u6bd4\u8f83\u7b80\u5355\uff0c\u800c\u4e14\u53ef\u6839\u636e\u5b9e\u9645\u9700\u8981\u8fdb\u884c\u529f\u80fd\u6269\u5c55\uff0c\u4f46\u662f\u9700\u8981\u5728\u5355\u7247\u673a\u4e0a\u5b9e\u73b0\u5d4c\u5165\u5f0fTCP\/IP \u7f51\u7edc\u534f\u8bae\uff0c\u8f6f\u4ef6\u7f16\u7a0b\u7684\u5de5\u4f5c\u91cf\u6bd4\u8f83\u5927\u3002\u7531\u4e8e\u91c7\u7528\u666e\u901a\u5355\u7247\u673a\uff0c\u6240\u4ee5\u5176\u4f18\u70b9\u662f\u6210\u672c\u4f4e\uff0c\u5355\u7247\u673a\u4f53\u79ef\u5c0f\uff0c\u6613\u4e8e\u4ee5\u6781\u9ad8\u7684\u6027\u4ef7\u6bd4\u5411\u8bf8\u591a\u9700\u8981\u5b9e\u73b0\u5d4c\u5165\u5f0f\u63a5\u5165Internet \u7684\u573a\u5408\u63a8\u5e7f\u3002\u672c\u6587\u8bbe\u8ba1\u7684\u7cfb\u7edf\u5c31\u662f\u91c7\u7528\u8fd9\u79cd\u6280\u672f\u65b9\u6848\uff0c\u4e0b\u9762\u5c06\u91cd\u70b9\u5206\u6790\u5176\u786c\u4ef6\u548c\u8f6f\u4ef6\u8bbe\u8ba1\u3002<\/p>\n

\n\t2 \u5355\u7247\u673a\u4e0e\u7f51\u5361\u7684\u63a5\u53e3\u7535\u8def<\/u><\/p>\n

\n\t2.1 \u7cfb\u7edf\u603b\u4f53\u8bbe\u8ba1<\/p>\n

\n\t\"MCS-51\u5355\u7247\u673a\u5b9e\u73b0\u4e0eInternet\u4ea4\u4e92\u7684\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe1 \u7cfb\u7edf\u603b\u4f53\u8bbe\u8ba1\u3002<\/p>\n

\n\t\u7cfb\u7edf\u9009\u7528\u6700\u5e38\u7528\u7684MCS 8051 \u7cfb\u5217\u5355\u7247\u673a\uff0c\u6b64\u7c7b\u578b\u5355\u7247\u673a\u4ef7\u683c\u4f4e\u5ec9\u4e14\u5e94\u7528\u5e7f\u6cdb\u3002\u7f51\u5361\u9009\u7528\u53f0\u6e7eReaLTEk\u516c\u53f8\u751f\u4ea7\u7684ATL8019AS \u4ee5\u592a\u7f51\u63a7\u5236\u5668\u82af\u7247\u3002\u7531\u4e8eInternet \u7f51\u7edc\u534f\u8bae\u7684\u7a0b\u5e8f\u4ee3\u7801\u91cf\u8f83\u5927\uff0c\u6240\u4ee5\u7cfb\u7edf\u9664\u4e86\u5355\u7247\u673a\u548c\u7f51\u5361\u5916\uff0c\u8fd8\u589e\u52a0\u4e86\u4e00\u4e9b\u5916\u56f4\u7535\u8def\u3002\u5305\u62ec\u7528\u4f5c\u6570\u636e\u7f13\u5b58\u7684RAM<\/u>\u5b58\u50a8\u5668\u548cRS<\/u>232 \u63a5\u53e3\uff0c\u524d\u8005\u7528\u4f5c\u6570\u636e\u7f13\u5b58\u5668\uff0c\u540e\u8005\u4f5c\u4e3a\u5355\u7247\u673a\u4e0e\u73b0\u573a\u8bbe\u5907\u8fdb\u884c\u6570\u636e\u4ea4\u4e92\u7684\u63a5\u53e3\u3002\u7cfb\u7edf\u603b\u4f53\u529f\u80fd\u8bbe\u8ba1\u5982\u56fe1 \u6240\u793a\u3002<\/p>\n

\n\t\u5728\u4e0a\u8ff0\u7cfb\u7edf\u8bbe\u8ba1\u4e2d\uff0c\u5355\u7247\u673a\u4e3b\u8981\u5b8c\u6210Internet\u6570\u636e\u7684\u89e3\u5305\u548c\u4e32\u53e3RS232 \u6570\u636e\u7684\u5c01\u5305\u3002\u8fdc\u7a0bPC \u673a\u4f20\u8f93\u6765\u6570\u636e\u5305\u7ecf\u8fc7Internet \u7269\u7406\u5a92\u4ecb\u5230\u8fbe\u4ee5\u592a\u7f51\u63a7\u5236\u82af\u7247 RTL8019AS \u5185\uff0cRTL8019AS \u6267\u884c\u5730\u5740\u89e3\u6790\u534f\u8bae\uff0c\u7136\u540e\u4ea4\u7ed9 C8051 \u5355\u7247\u673a\uff0c\u5355\u7247\u673a\u6267\u884cTCP\/IP \u534f\u8bae\u6a21\u5757\uff0c\u53bb\u6389 TCP\/IP \u62a5\u5934\u540e\u5c06\u6570\u636e\u901a\u8fc7RS232 \u4e32\u884c\u53e3\u4ea4\u7ed9\u6570\u636e\u91c7\u96c6\u7cfb\u7edf\u7684\u73b0\u573a\u8bbe\u5907\u3002\u53cd\u4e4b\uff0c\u5982\u679c\u662f\u73b0\u573a\u8bbe\u5907\u53d1\u9001\u6570\u636e\u5230\u5355\u7247\u673a\uff0c\u90a3\u4e48\u5355\u7247\u673a\u5c06\u6570\u636e\u6309\u7167TCP\/IP \u534f\u8bae\u683c\u5f0f\u5c01\u5305\u540e\u9001\u5165RTL8019AS\uff0c\u7531\u7f51\u5361\u82af\u7247\u4f20\u8f93\u5230Internet \u4e2d\u3002\u901a\u8fc7\u4e0a\u8ff0\u65b9\u5f0f\uff0c\u5355\u7247\u673a\u5b8c\u6210\u4e0eInternet \u7684\u4ea4\u4e92\uff0c\u4ece\u800c\u5b9e\u73b0\u6570\u636e\u91c7\u96c6\u7cfb\u7edf\u7684\u4e92\u8054\u7f51\u8fdc\u7a0b\u63a7\u5236\u3002<\/p>\n

\n\t2.2 \u6807\u5355\u7247\u673a\u4e0e\u7f51\u5361\u7684\u63a5\u53e3\u7535\u8def<\/p>\n

\n\t\u5355\u7247\u673a\u662f\u672c\u7cfb\u7edf\u7684\u6838\u5fc3\uff0c\u56e0\u6b64\u5355\u7247\u673a\u4e0e\u7f51\u5361\u7684\u63a5\u53e3\u7535\u8def\u975e\u5e38\u5173\u952e\u3002\u672c\u7cfb\u7edf\u9009\u75288051 \u7cfb\u5217\u5355\u7247\u673a\uff0c\u662f\u56e0\u4e3a8051 \u5355\u7247\u673a\u662f\u6700\u5e38\u7528\u7684\u5355\u7247\u673a\uff0c\u5176\u4ef7\u683c\u4f4e\u5ec9\u4e14\u5e94\u7528\u5e7f\u6cdb\uff0c\u5728\u5de5\u4e1a\u8bbe\u5907\u5e94\u7528\u4e2d\u6613\u4e8e\u964d\u4f4e\u7cfb\u7edf\u6210\u672c\u3002\u540c\u65f68051 \u7f16\u5199\u7a0b\u5e8f\u7b80\u7ec3\uff0c\u7a0b\u5e8f\u8c03\u8bd5\u65b9\u4fbf\u30028051 \u5355\u7247\u673a\u4e0e\u4ee5\u592a\u7f51\u63a7\u5236\u5668\u82af\u7247\u7684\u8fde\u63a5\u7535\u8def\u5982\u56fe2 \u6240\u793a\u3002<\/p>\n

\n\t\"MCS-51\u5355\u7247\u673a\u5b9e\u73b0\u4e0eInternet\u4ea4\u4e92\u7684\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe2 \u5355\u7247\u673a\u4e0e\u4ee5\u592a\u7f51\u63a7\u5236\u82af\u7247\u8fde\u63a5\u56fe\u3002<\/p>\n

\n\t8051 \u5355\u7247\u673aP0 \u53e3\u76848 \u4f4d\u6570\u636e\u603b\u7ebfD0-D7\u3001P2\u53e3\u76845 \u6839\u5730\u5740\u7ebfA8-A12\u3001\u8bfb\u4fe1\u53f7\u7ebf<\/u>RD\u3001\u5199\u4fe1\u53f7\u7ebfWR\u30012 \u4e2a\u5b9a\u65f6\u5668<\/u>\u63a7\u5236\u7aefT0\u3001T1 \u5206\u522b\u4e0eRealtek8019AS \u7684\u5404\u4fe1\u53f7\u7ebf\u5bf9\u5e94\u8fde\u63a5\u3002<\/p>\n

\n\tRealtek8019AS \u82af\u7247\u5de5\u4f5c\u57288 \u4f4d\u603b\u7ebf\u65b9\u5f0f\u30028051 \u5355\u7247\u673a\u9a71\u52a8\u7f51\u7edc\u63a7\u5236\u82af\u7247RTL8019AS\uff0c\u7ecf\u7f51\u7edc\u9694\u79bb\u6ee4\u6ce2\u5668<\/u>HR901170A \u540e\u5b9e\u73b0Internet \u63a5\u5165\u3002<\/p>\n

\n\t3 TCP\/IP\u534f\u8bae\u6808\u5728\u5355\u7247\u673a\u4e0a\u7684\u5b9e\u73b0<\/p>\n

\n\t3.1 \u5d4c\u5165\u5f0fTCP\/IP \u534f\u8bae\u6808<\/p>\n

\n\tTCP\/IP \u534f\u8bae\u662fInternet \u7684\u6838\u5fc3\u534f\u8bae\u3002\u5355\u7247\u673a\u5b9e\u73b0\u5d4c\u5165\u5f0f\u63a5\u5165 Internet \u5fc5\u987b\u8981\u5728\u5355\u7247\u673a\u4e0a\u5b9e\u73b0TCP\/IP \u534f\u8bae\u3002\u7531\u4e8eTCP\/IP \u534f\u8bae\u7c07\u5f02\u5e38\u5e9e\u5927\uff0c\u800c\u5355\u7247\u673a\u7247\u5185\u8d44\u6e90\u6709\u9650\uff0c\u6240\u4ee5\u8981\u5728\u5355\u7247\u673a\u4e0a\u5b8c\u6574\u5b9e\u73b0TCP\/IP\u534f\u8bae\u662f\u4e0d\u53ef\u80fd\u7684\u3002\u76ee\u524d\u8bb8\u591a\u516c\u53f8\u6839\u636e\u4e0d\u540c\u7684\u5d4c\u5165\u5f0f\u8bbe\u5907\u5f00\u53d1\u4e86\u9762\u5411\u5546\u7528\u7684\u5d4c\u5165\u5f0fTCP\/IP \u534f\u8bae\u6808\uff0c\u8fd9\u4e9b\u534f\u8bae\u6808\u7f3a\u70b9\u662f\u9762\u5411\u7279\u5b9a\u516c\u53f8\u751f\u4ea7\u7684\u82af\u7247\uff0c\u4e14\u9700\u652f\u4ed8\u6602\u8d35\u7684\u8f6f\u4ef6\u4f7f\u7528\u8d39\u3002\u5982\u679c\u91c7\u7528\u8fd9\u7c7b\u534f\u8bae\u6808\u5219\u4f7f\u5f97\u8bbe\u8ba1\u7684\u5355\u7247\u673a\u5d4c\u5165\u5f0fInternet \u7cfb\u7edf\u4e0d\u5177\u6709\u6027\u4ef7\u6bd4\u4e0a\u7684\u4f18\u52bf\u3002\u7ecf\u8fc7\u5bf9\u6bd4\uff0c\u6700\u540e\u5728\u672c\u7cfb\u7edf\u4e2d\u9009\u7528\u5f00\u653e\u6e90\u4ee3\u7801\u7684TCP\/IP\u534f\u8bae\u6808uIP0.9 \u4f5c\u4e3a\u8bbe\u8ba1\u6838\u5fc3\u3002uIP0.9 \u662f\u4e00\u4e2a\u9002\u7528\u4e8e8\/16 \u4f4d\u5355\u7247\u673a\u4e0a\u7684\u5c0f\u578b\u5d4c\u5165\u5f0fTCP\/IP \u534f\u8bae\u6808\uff0c\u611f\u5174\u8da3\u7684\u7528\u6237\u53ef\u4ee5\u514d\u8d39\u5728\u7f51\u7edc\u4e0a\u4e0b\u8f7d\u5176\u6e90\u4ee3\u7801\u5e76\u5bf9\u5176\u8fdb\u884c\u4fee\u6539\uff0c\u4ee5\u9002\u5e94\u4e0d\u540c\u7684\u5e94\u7528\u9700\u8981\u3002uIP0.9 \u534f\u8bae\u6808\u91c7\u7528\u6a21\u5757\u5316\u8bbe\u8ba1\uff0c\u4fdd\u7559\u7f51\u7edc\u901a\u4fe1\u6240\u5fc5\u8981\u7684\u534f\u8bae\u673a\u5236\uff0c\u5927\u5927\u51cf\u5c11\u4e86\u534f\u8bae\u4ee3\u7801\u91cf\uff08\u4ee3\u7801\u91cf\u5728\u51e0\u5343\u5b57\u8282\u5de6\u53f3\uff09\uff0c\u53ea\u9700\u8981\u51e0\u767e\u5b57\u8282\u7684\u5185\u5b58\u5c31\u53ef\u4ee5\u987a\u5229\u8fd0\u884c\uff0c\u964d\u4f4e\u4e86\u534f\u8bae\u5bf9\u7cfb\u7edf\u8d44\u6e90\u7684\u8981\u6c42\u3002uIP0.9 \u5b8c\u5168\u9002\u5e94\u5f53\u524d\u7684\u5355\u7247\u673a\u5d4c\u5165\u5f0f\u7cfb\u7edf\u3002<\/p>\n

\n\t3.2 uIP \u7684\u4f53\u7cfb\u7ed3\u6784<\/p>\n

\n\tuIP \u534f\u8bae\u6839\u636e\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7684\u9700\u8981\uff0c\u53bb\u6389\u4e86TCP\/IP\u534f\u8bae\u4e2d\u8bb8\u591a\u4e0d\u5e38\u7528\u7684\u529f\u80fd\uff0c\u4fdd\u7559\u7f51\u7edc\u901a\u4fe1\u4e2d\u6240\u9700\u8981\u7684ARP\uff08\u53ef\u9009\uff09\u3001IP\u3001ICMP\u3001TCP\u3001UDP\uff08\u53ef\u9009\uff09\u7b49\u6700\u6838\u5fc3\u7684\u90e8\u5206\u3002\u534f\u8bae\u5168\u90e8\u7528C\u8bed\u8a00\u7f16\u5199\uff0c\u5176\u4ee3\u7801\u5360\u7528\u91cf\u6781\u5c11\uff0c\u5bf9RAM \u8d44\u6e90\u8981\u6c42\u4e5f\u6781\u4f4e\u3002\u4f8b\u5982IP\/ICMP\/TCP \u6838\u5fc3\u6a21\u5757\u4ee3\u7801\u5927\u5c0f\u4e3a3304 \u5b57\u8282\uff0c\u4f7f\u7528\u7684RAM \u53ea\u9700\u8981360\u5b57\u8282\u3002\u5176\u5e94\u7528\u5c42\u63a5\u53e3\u548c\u8bbe\u5907\u9a71\u52a8\u5c42\u63a5\u53e3\u975e\u5e38\u7b80\u5355\u3002<\/p>\n

\n\tuIP \u534f\u8bae\u5c06\u8bbe\u8ba1\u91cd\u70b9\u653e\u5728IP\u3001ICMP \u548cTCP \u534f\u8bae\u7684\u5b9e\u73b0\u4e0a\uff0c\u800c\u5c06UDP \u548cARP \u534f\u8bae\u5b9e\u73b0\u4f5c\u4e3a\u53ef\u9009\u6a21\u5757\u3002uIP\u534f\u8bae\u7684\u4f53\u7cfb\u7ed3\u6784\u5982\u56fe3 \u6240\u793a\u3002<\/p>\n

\n\t\"MCS-51\u5355\u7247\u673a\u5b9e\u73b0\u4e0eInternet\u4ea4\u4e92\u7684\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe3 uIP \u534f\u8bae\u6808\u7ed3\u6784\u56fe\u3002<\/p>\n

\n\t3.3 uIP \u7684\u5e95\u5c42\u8bbe\u5907\u9a71\u52a8\u63a5\u53e3\u548c\u5e94\u7528\u7a0b\u5e8f\u63a5\u53e3<\/p>\n

\n\tuIP \u662f\u4e00\u4e2a\u4ec5\u5305\u542b\u4e09\u5c42\u7f51\u7edc\u5c42\u6838\u5fc3\u534f\u8bae\u7684\u534f\u8bae\u6808\uff0cuIP \u81ea\u8eab\u4e0d\u5305\u542b\u4efb\u4f55\u7c7b\u578b\u7684\u5e95\u5c42\u7f51\u7edc\u9a71\u52a8\u548c\u4e0a\u5c42\u5e94\u7528\u7a0b\u5e8f\uff0c\u5b83\u53ea\u63d0\u4f9b\u63a5\u53e3\u51fd\u6570\u4f9b\u7528\u6237\u5f00\u53d1\u4f7f\u7528\u3002\u56e0\u6b64\u4e3a\u4e86\u5b8c\u6210\u4e0e\u7f51\u7edc\u8bbe\u5907\u7684\u4ea4\u4e92\uff0c\u7528\u6237\u5fc5\u987b\u6839\u636e\u7f51\u7edc\u8bbe\u5907\u7684\u7c7b\u578b\uff0c\u5728uIP \u4e2d\u81ea\u884c\u5b9e\u73b0\u5bf9\u5e95\u5c42\u7f51\u7edc\u8bbe\u5907\u7684\u9a71\u52a8\u3002\u5bf9\u672c\u4f8b\u6765\u8bf4\uff0c\u7f51\u7edc\u8bbe\u5907\u662fRTL8019AS \u7f51\u5361\uff0c\u56e0\u6b64\u9700\u8981\u5728uIP \u4e2d\u5b9e\u73b0\u5bf9RTL8019AS \u7f51\u5361\u7684\u9a71\u52a8\u3002\u5982\u679c\u7528\u6237\u9700\u8981\u5728Internet \u4e0a\u901a\u8fc7http \u534f\u8bae\u6d4f\u89c8\u548c\u83b7\u53d6\u73b0\u573a\u6570\u636e\uff0c\u8fd8\u5fc5\u987b\u5728uIP \u4e0a\u5b9e\u73b0\u57fa\u4e8eHTTP \u534f\u8bae\u7684WEB \u5e94\u7528\u670d\u52a1\u3002<\/p>\n

\n\tRTL8019AS \u7f51\u5361\u9a71\u52a8\u9996\u5148\u662f\u5bf9\u7f51\u5361\u82af\u7247\u7684\u4e0a\u7535\u521d\u59cb\u5316\uff0c\u901a\u8fc7\u51fd\u6570init_8019as\uff08\uff09\u8fdb\u884c\uff0c\u7528\u4e8e\u8bbe\u5b9a\u7f51\u5361\u7269\u7406\u5730\u5740\uff0c\u8bbe\u5b9a\u6536\u53d1\u7f13\u51b2\u533a\u4f4d\u7f6e\u548c\u5927\u5c0f\u7b49\u3002\u5176\u6b21\u662f\u53d1\u9001\u6570\u636e\u51fd\u6570eth_send\uff08\uff09\u548c\u63a5\u6536\u6570\u636e\u51fd\u6570eth_rcve\uff08\uff09\u3002<\/p>\n

\n\t\u800cuIP \u534f\u8bae\u6808\u5219\u901a\u8fc7\u5185\u6838\u4e2d\u7684uip_input\uff08\uff09\u51fd\u6570\u5b9e\u73b0\u5bf9\u5e95\u5c42\u7f51\u7edc\u8bbe\u5907\u7684\u9a71\u52a8\uff0c\u8be5\u51fd\u6570\u662fuIP \u534f\u8bae\u7684\u5e95\u5c42\u8bbe\u5907\u5165\u53e3\u3002\u5b83\u5305\u542b\u4e24\u4e2a\u5168\u5c40\u53d8\u91cfuip_buf\u3001uip_len.\u524d\u8005\u7528\u4e8e\u5b58\u653e\u63a5\u6536\u5230\u7684\u6570\u636e\u5305\uff0c\u540e\u8005\u8868\u793a\u63a5\u6536\u53d1\u9001\u7f13\u51b2\u533a\u91cc\u7684\u6570\u636e\u957f\u5ea6\u3002uip_input\uff08\uff09\u51fd\u6570\u5904\u7406\u4ece\u7f51\u7edc\u8bbe\u5907\u9a71\u52a8\u53d1\u9001\u6765\u7684IP \u5305\u3002\u5904\u7406\u7ed3\u675f\u540e\u8fd4\u56de\u53d8\u91cfuip_len\uff0c\u5982\u679cuip_len \u662f0\uff0c\u5219\u6ca1\u6709\u6570\u636e\u8981\u53d1\u9001\u3002\u4e0d\u4e3a0 \u5219\u8c03\u7528\u7f51\u7edc\u8bbe\u5907\u9a71\u52a8\u7a0b\u5e8feth_send\uff08\uff09\u51fd\u6570\u6765\u5c06uip_buf \u91cc\u7684uip_len \u957f\u5ea6\u7684\u6570\u636e\u53d1\u9001\u5230\u4ee5\u592a\u7f51\u4e0a\u3002eth_rcve\uff08\uff09\u51fd\u6570\u5c06\u63a5\u6536\u5230\u7684\u6570\u636e\u5b58\u50a8\u5230\u7f13\u5b58uip_buf \u6307\u5b9a\u7684\u7f13\u51b2\u533a\u4e2d\uff0c\u7cfb\u7edf\u8c03\u7528uip_input\uff08\uff09\u51fd\u6570\uff0c\u5e76\u5728\u9700\u8981\u65f6\u8c03\u7528\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

\n\tuip_perioDIC\uff08\uff09\u53ef\u4ee5\u7406\u89e3\u4e3a\u662f\u4e00\u4e2a\u5468\u671f\u65f6\u949f<\/u>\u51fd\u6570\uff0c\u901a\u5e38\u6bcf\u4e00\u79d2\u6267\u884c\u4e00\u6b21\uff0c\u5355\u7247\u673a\u7528\u5b83\u5468\u671f\u6027\u5730\u8f6e\u8be2\u5404\u8fde\u63a5\u3002\u56e0\u4e3auIP \u534f\u8bae\u8981\u5904\u7406\u8bb8\u591a\u5b9a\u65f6\u4e8b\u4ef6\uff0c\u4f8b\u5982\u5305\u91cd\u53d1\u3001ARP \u8868\u9879\u66f4\u65b0\u3002\u5f53\u5468\u671f\u8ba1\u65f6\u6fc0\u53d1\uff0c\u6bcf\u4e00\u4e2aTCP \u8fde\u63a5\u8c03\u7528uip_periodIC\uff08\uff09\uff0c\u5176TCP \u8fde\u63a5\u7f16\u53f7\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9uip_periodic\uff08\uff09\u51fd\u6570\u3002uip_periodic\uff08\uff09\u51fd\u6570\u68c0\u67e5\u53c2\u6570\u6307\u5b9a\u7684\u8fde\u63a5\u7684\u72b6\u6001\u3002\u5f53uip_periodic\uff08\uff09\u51fd\u6570\u8fd4\u56de\u540e\uff0c\u4f1a\u68c0\u67e5uip_len \u7684\u503c\uff0c\u82e5\u4e0d\u4e3a0 \u5219\u5c06uip_buf \u7f13\u51b2\u533a\u4e2d\u7684\u6570\u636e\u5305\u53d1\u9001\u5230\u7f51\u7edc\u4e0a\u3002<\/p>\n

\n\tuIP \u534f\u8bae\u7684\u5e94\u7528\u7a0b\u5e8f\u63a5\u53e3\u7528\u4e8e\u5b9e\u73b0web \u4e4b\u7c7b\u7684\u5e94\u7528\u670d\u52a1\u3002uIP \u5b9a\u4e49\u4e86\u4e00\u4e2a\u5b8fUIP_APPCALL\uff08\uff09\u4f5c\u4e3a\u8be5\u63a5\u53e3\uff0c\u4f9b\u7528\u6237\u4f7f\u7528\u3002\u5f53\u7528\u6237\u8981\u7f16\u7a0b\u5b9e\u73b0\u67d0\u5e94\u7528\u670d\u52a1\u65f6\uff0c\u53ea\u9700\u8981\u5c06\u5b8fUIP_APPCALL\uff08\uff09\u5b9a\u4e49\u6210\u5b9e\u9645\u7684\u5e94\u7528\u7a0b\u5e8f\u51fd\u6570\u540d<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5b9e\u73b0MCS-51 \u5355\u7247\u673a \u5d4c\u5165\u5f0f\u63a5\u5165In te rnet \u6280\u672f\u3002\u5355\u7247\u673a\u901a\u8fc7ATL8019AS \u4ee5\u592a\u7f51 \u63a7\u5236\u5668\u5b9e\u73b0\u4e0eInternet \u7684\u4ea4\u4e92\u3002\u5229\u7528\u5f00\u6e90\u4ee3\u7801\u7684TCP\/IP \u534f\u8bae\u6808uIP \u5b9e\u73b0\u5bf9\u5e95\u5c42\u8bbe\u5907\u7684\u9a71\u52a8\uff0c\u540c\u65f6\u901a\u8fc7uIP \u534f\u8bae\u7684\u5e94\u7528\u7a0b\u5e8f<\/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\/2366"}],"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=2366"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2366\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2366"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}