{"id":3145,"date":"2020-09-22T03:40:19","date_gmt":"2020-09-22T03:40:19","guid":{"rendered":""},"modified":"2020-09-22T11:40:40","modified_gmt":"2020-09-22T03:40:40","slug":"%e5%9f%ba%e4%ba%8epic18f6722%e8%8a%af%e7%89%87%e5%ae%9e%e7%8e%b0%e8%bf%9c%e7%a8%8b%e6%93%8d%e4%bd%9c%e7%9b%91%e6%8e%a7%e7%b3%bb%e7%bb%9f%e7%9a%84%e8%ae%be%e8%ae%a1","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=3145","title":{"rendered":"\u57fa\u4e8ePIC18F6722\u82af\u7247\u5b9e\u73b0\u8fdc\u7a0b\u64cd\u4f5c\u76d1\u63a7\u7cfb\u7edf\u7684\u8bbe\u8ba1"},"content":{"rendered":"
\n\t1 \u5f15\u8a00<\/p>\n
\n\t21\u4e16\u7eaa\u662f\u5d4c\u5165\u5f0f\u8ba1\u7b97\u7cfb\u7edf\u65f6\u4ee3\uff0c\u4eba\u4eec\u65e5\u5e38\u751f\u6d3b\u548c\u5de5\u4f5c\u4e2d\u6240\u63a5\u89e6\u7684\u4eea\u5668\u4e0e\u8bbe\u5907\u4e2d\uff0c\u90fd\u5c06\u5d4c\u5165\u5177\u6709\u5f3a\u5927\u8ba1\u7b97\u80fd\u529b\u7684\u5fae\u5904\u7406\u5668\u3002\u5d4c\u5165\u5f0f\u7cfb\u7edf\u662f\u4efb\u610f\u5305\u542b\u4e00\u4e2a\u53ef\u7f16\u7a0b\u8ba1\u7b97\u673a<\/u>\u7684\u8bbe\u5907\uff0c\u4f46\u662f\u8fd9\u4e2a\u8bbe\u5907\u4e0d\u662f\u4f5c\u4e3a\u901a\u7528\u8ba1\u7b97\u673a\u800c\u8bbe\u8ba1\u7684\u3002\u5373\u5d4c\u5165\u5f0f\u8ba1\u7b97\u7cfb\u7edf\u662f\u5d4c\u5165\u5728\u5176\u4ed6\u8bbe\u5907\u4e2d\uff0c\u8d77\u667a\u80fd\u63a7\u5236\u4f5c\u7528\u7684\u4e13\u7528\u8ba1\u7b97\u673a\u7cfb\u7edf\u3002\u4e00\u53f0\u901a\u7528\u4e2a\u4eba\u7535\u8111\u4e0d\u80fd\u79f0\u4e3a\u5d4c\u5165\u5f0f\u8ba1\u7b97\u7cfb\u7edf\uff0c\u5c3d\u7ba1\u6709\u65f6\u4f1a\u628a\u5b83\u5d4c\u5165\u5230\u67d0\u4e9b\u8bbe\u5907\u4e2d\uff0c\u800c\u4e00\u53f0\u5305\u542b\u6709\u5fae\u5904\u7406\u5668\u7684\u6253\u5370\u673a\u3001\u6570\u7801\u76f8\u673a\u5c31\u53ef\u4ee5\u7b97\u5d4c\u5165\u5f0f\u8ba1\u7b97\u7cfb\u7edf\u3002\u5d4c\u5165\u5f0f\u8ba1\u7b97\u7cfb\u7edf\u5df2\u7ecf\u5e7f\u6cdb\u5730\u5e94\u7528\u5230\u5de5\u4e1a\u63a7\u5236\u8bbe\u5907\u7cfb\u7edf\u3001\u4fe1\u606f\u5bb6\u7535\u3001\u667a\u80fd\u5bb6\u5ead\u8bbe\u5907\u7b49\u4f17\u591a\u9886\u57df\u4e2d\u3002\u968f\u7740\u56e0\u7279\u7f51\u7684\u8fc5\u901f\u53d1\u5c55\uff0cWeb\u5e94\u7528\u7a0b\u5e8f\u7684\u5e94\u7528\u4e5f\u8d8a\u6765\u8d8a\u5e7f\u6cdb\uff0c\u5b83\u5e7f\u6cdb\u5730\u7528\u4e8e\u5404\u79cd\u76d1\u63a7<\/u>\u7cfb\u7edf\u3001\u901a\u4fe1\u8bbe\u5907\u7b49\u9886\u57df\u3002\u5d4c\u5165\u5f0f\u7cfb\u7edf\u65e5\u76ca\u4e0eInternet\u6280\u672f\u548c WWW\u6280\u672f\u7ed3\u5408\u8d77\u6765\u53d1\u5c55\u4e3a\u5d4c\u5165\u5f0fWeb\u6216\u5d4c\u5165\u5f0fInternet\u6280\u672f\u3002\u5d4c\u5165\u5f0f\u8bbe\u5907\u4e0eInternet\u7684\u7ed3\u5408\u5c06\u4ee3\u8868\u7740\u5d4c\u5165\u5f0f\u6280\u672f\u7684\u771f\u6b63\u672a\u6765\u3002\u4e0b\u6587\u4ecb\u7ecd\u4e00\u79cd\u5d4c\u5165\u5f0f\u667a\u80fd\u5bb6\u5ead\u8fdc\u7a0b\u76d1\u63a7\u7cfb\u7edf\uff0c\u5b83\u662f\u5728Microchip<\/u>\u516c\u53f8\u63d0\u4f9b\u786c\u4ef6\u7684\u57fa\u7840\uff0c\u5728\u529f\u80fd\u5b9e\u73b0\u4e0a\u72ec\u7acb\u5b8c\u6210\u4e86TCP\/IP\u534f\u8bae\u3001HTTP\u534f\u8bae\u7684\u7f16\u5199\uff0c\u5e76\u5728\u6b64\u57fa\u7840\u4e0a\u52a0\u8f7d\u4e86\u5b9e\u9645\u7684\u5e94\u7528\u3002<\/p>\n \n\t2 HTTP\u534f\u8bae<\/p>\n \n\tHTTP\u662f\u8d85\u6587\u672c\u4f20\u8f93\u534f\u8bae\u7684\u7f29\u5199\uff0c\u7528\u4e8e\u4f20\u9001WWW\u65b9\u5f0f\u7684\u6570\u636e\u3002HTTP\u534f\u8bae\u91c7\u7528\u4e86\u8bf7\u6c42\uff0f\u54cd\u5e94\u6a21\u578b\u3002\u5ba2\u6237\u7aef\u5411\u670d\u52a1\u5668\u53d1\u9001\u4e00\u4e2a\u8bf7\u6c42\uff0c\u8bf7\u6c42\u5934\u5305\u542b\u8bf7\u6c42\u7684\u65b9\u6cd5\u3001URI\u3001\u534f\u8bae\u7248\u672c\u3001\u4ee5\u53ca\u5305\u542b\u8bf7\u6c42\u4fee\u9970\u7b26\u3001\u5ba2\u6237\u4fe1\u606f\u548c\u5185\u5bb9\u7c7b\u4f3c\u4e8eMI<\/u>ME\u7684\u6d88\u606f\u7ed3\u6784\u3002\u670d\u52a1\u5668\u4ee5\u4e00\u4e2a\u72b6\u6001\u884c\u4f5c\u4e3a\u54cd\u5e94\uff0c\u76f8\u5e94\u7684\u5185\u5bb9\u5305\u62ec\u6d88\u606f\u534f\u8bae\u7684\u7248\u672c\uff0c\u6210\u529f\u6216\u8005\u9519\u8bef\u7f16\u7801\u52a0\u4e0a\u5305\u542b\u670d\u52a1\u5668\u4fe1\u606f\u3001\u5b9e\u4f53\u5143\u4fe1\u606f\u4ee5\u53ca\u53ef\u80fd\u7684\u5b9e\u4f53\u5185\u5bb9\u3002\u901a\u5e38HTTP\u6d88\u606f\u5305\u62ec\u5ba2\u6237\u673a\u5411\u670d\u52a1\u5668\u7684\u8bf7\u6c42\u6d88\u606f\u548c\u670d\u52a1\u5668\u5411\u5ba2\u6237\u673a\u7684\u54cd\u5e94\u6d88\u606f\u3002\u8fd9\u4e24\u79cd\u7c7b\u578b\u7684\u6d88\u606f\u7531\u4e00\u4e2a\u8d77\u59cb\u884c\uff0c\u4e00\u4e2a\u6216\u8005\u591a\u4e2a\u5934\u57df\uff0c\u4e00\u4e2a\u5934\u57df\u7ed3\u675f\u7684\u7a7a\u884c\u548c\u53ef\u9009\u7684\u6d88\u606f\u4f53\u7ec4\u6210\u3002\u5728Internet\u4e0a\uff0cHTTP\u901a\u8baf\u901a\u5e38\u53d1\u751f\u5728TCP\/IP\u8fde\u63a5\u4e4b\u4e0a\u3002\u7f3a\u7701\u7aef\u53e3\u662fTCP80\uff0c\u4f46\u5176\u5b83\u7684\u7aef\u53e3\u4e5f\u662f\u53ef\u7528\u7684\u3002\u4f46\u8fd9\u5e76\u4e0d\u9884\u793a\u7740HTTP\u534f\u8bae\u5728Internet\u6216\u5176\u5b83\u7f51\u7edc\u7684\u5176\u5b83\u534f\u8bae\u4e4b\u4e0a\u624d\u80fd\u5b8c\u6210\u3002HTTP\u53ea\u9884\u793a\u7740\u4e00\u4e2a\u53ef\u9760\u7684\u4f20\u8f93\u3002\u57fa\u4e8eHTTP\u534f\u8bae\u7684\u5ba2\u6237\/\u670d\u52a1\u5668\u6a21\u5f0f\u7684\u4fe1\u606f\u4ea4\u6362\u8fc7\u7a0b\uff0c\u5b83\u5206\u56db\u4e2a\u8fc7\u7a0b\uff0c\u5efa\u7acb\u8fde\u63a5\u3001\u53d1\u9001\u8bf7\u6c42\u4fe1\u606f\u3001\u53d1\u9001\u54cd\u5e94\u4fe1\u606f\u3001\u5173\u95ed\u8fde\u63a5\u3002WWW\u670d\u52a1\u5668\u8fd0\u884c\u65f6\uff0c\u4e00\u76f4\u5728TCP80\u7aef\u53e3\u76d1\u542c\uff0c\u7b49\u5f85\u8fde\u63a5\u7684\u51fa\u73b0\u3002<\/p>\n \n\t3 \u5d4c\u5165\u5f0f\u8fdc\u7a0b\u76d1\u63a7\u7cfb\u7edfAllLightSYS\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0<\/p>\n \n\t3\uff0e1 \u529f\u80fd\u6982\u8981<\/p>\n \n\t\u8fd9\u91cc\u6240\u63d0\u53ca\u7684\u7cfb\u7edf\uff0c\u5b83\u7684\u82af\u7247\u7c7b\u578b\u662f\u7531Microchip\u516c\u53f8\u63d0\u4f9b\u7684PI<\/u>C18F6722\u3002\u8be5\u673a\u5668\u662f\u901a\u8fc7AllLight Syste<\/u>m\u548cInternet\u76f8\u8fde\uff0c\u4ece\u800c\u5bf9\u4f4f\u6240\u5185\u7684\u7535\u5668\u8fdb\u884c\u8fdc\u7a0b\u63a7\u5236\u7684Interface\u5355\u5143\u3002\u5b83\u662f\u901a\u8fc7Modem\uff0cRote\u8fde\u63a5\u5230Internet\uff0c\u4f7f\u7528\u624b\u673a\u7684WEB\u6d4f\u89c8\u5668\u8bbf\u95eeAllLight\u7cfb\u7edf\u6765\u8fdc\u7a0b\u63a7\u5236\u7a7a\u8c03<\/u>\u3001\u7535\u706f\u7b49\u7535\u5668\u7684\u5f00\u548c\u5173\uff0c\u53ea\u8981\u5728\u624b\u673a\u7684WEB\u6d4f\u89c8\u5668\u4e0a\u8f93\u5165\u8be5\u7cfb\u7edf\u7684URL\u540e\uff0c\u5728\u8be5\u767b\u9646\u9875\u9762\u4e0a\u8f93\u5165\u8fdc\u7a0b\u64cd\u4f5c\u7684AllLight\u7684ControlUnit\u7684\u7f16\u53f7\uff0c\u4ece\u800c\u5bf9\u767b\u5f55WEB I\/F UNIT\u7684\u7528\u6237\u8fdb\u884c\u8ba4\u8bc1\uff0c\u7ecf\u8fc7\u8ba4\u8bc1\u7684\u7528\u6237\u53ef\u4ee5\u7ee7\u7eed\uff0c\u8ba4\u8bc1\u4e0d\u901a\u8fc7\u7684\u8f6c\u5230\u8ba4\u8bc1\u9519\u8bef\u753b\u9762\u3002\u540c\u65f6\u53ef\u4ee5\u542f\u52a8\u8be5\u7cfb\u7edf\u7684\u9632\u76d7\u76d1\u89c6\u529f\u80fd\u65f6\uff0c\u5f53\u6709\u5165\u4fb5\u8005\u6253\u5f00\u88ab\u76d1\u89c6\u7684\u7535\u5668\u8bbe\u5907\u65f6\uff0c\u5c31\u53ef\u4ee5\u5411\u7528\u6237\u624b\u673a\uff08\u8ba1\u7b97\u673a\u7ec8\u7aef\uff09\u53d1\u9001\u90ae\u4ef6\u8fdb\u884c\u63d0\u9192\u3002\u8fd9\u91cc\u6700\u591a\u53ef\u4ee5\u63a7\u5236\u7684AllLightControlUnit\u6570\u662f32\u53f0\u3002 \uff08\u5982\u56fe\uff09<\/p>\n \n\t<\/p>\n \n\t\u5728\u624b\u673a\u7684WEB\u6d4f\u89c8\u5668\u4e0a\u8f93\u5165WEB I\/F UNIT\u7684URL\u540e\uff0c\u4e3a\u4e86\u9632\u6b62\u975e\u6cd5\u767b\u5f55\uff0c\u4e00\u65e6\u7528\u6237\u767b\u5f553\u6b21\u5931\u8d25\u4ee5\u540e\uff0c\u5916\u90e8\u7684\u767b\u5f55\u5c06\u5931\u6548\uff0cWEB I\/F UNIT\u5c06\u901a\u8fc7HTTP\u534f\u8bae\u5411AllLight\u670d\u52a1\u5668\u53d1\u9001\u975e\u6cd5\u767b\u5f55\u7684\u8b66\u544a\u4fe1\u53f7\u3002\u8b66\u544a\u4fe1\u606f\u4e2d\u5305\u542b\u4e86WEB I\/F UNIT\u7684MAC\u5730\u5740\uff08\u4e3a\u4e86\u548c\u7528\u6237\u7684\u90ae\u4ef6\u5730\u5740\u5173\u8054\uff09\u3002AllLight\u4e13\u7528\u670d\u52a1\u5668\u6839\u636eWEB I\/F UNIT\u4f20\u9001\u8b66\u544a\u4fe1\u606f\u4e2d\u7684MAC\u5730\u5740\u6570\u636e\uff0c\u5c06\u8b66\u544a\u90ae\u4ef6\u53d1\u9001\u5230\u4e0eMAC\u5bf9\u5e94\u7684\u7528\u6237\u624b\u673a\u4e0a\u3002\u5916\u90e8\u767b\u5f55\u7684\u5931\u6548\u89e3\u9664\uff0c\u662f\u901a\u8fc7WEB I\/F UNIT\u7684\u5916\u90e8\u767b\u5f55\u65e0\u6548\u89e3\u9664\u6309\u94ae\u6765\u5b9e\u884c\u7684\u3002<\/p>\n \n\t\u8be5\u7cfb\u7edf\u8fd8\u53ef\u4ee5\u5bf9\u548cWEB I\/F UNIT\u76f4\u63a5\u76f8\u8fde\u7684AllLight Control Unit\uff08Local Port\u8fde\u63a5\uff09\u7684\u56de\u8def\u8fdb\u884c\u76d1\u89c6\u3002\u76d1\u89c6\u56de\u8def\u548c\u68c0\u6d4b\u72b6\u6001\uff08ON\/OFF\uff09\u662f\u901a\u8fc7\u5728WEBPAGE\u8bbe\u5b9a\u7684\uff0c\u6839\u636e\u8bbe\u5b9a\u7684\u5185\u5bb9\u5bf9\u56de\u8def\u76d1\u89c6\u3002\u5982\u679c\u662f\u68c0\u6d4b\u5230\u9632\u76d7\u4fe1\u606f\uff0c\u5411AllLight\u4e13\u7528\u670d\u52a1\u5668\u53d1\u9001\u8b66\u544a\u4fe1\u53f7\uff0cAllLight\u4e13\u7528\u670d\u52a1\u5668\u5411\u7528\u6237\u53d1\u9001\u90ae\u4ef6\u3002\u9632\u76d7\u76d1\u89c6\u673a\u80fd\u7684\u5f00\u548c\u5173\u662f\u901a\u8fc7\u624b\u673a\u767b\u9646\u9875\u9762\u4e2d\u7684\u4e00\u4e2a\u529f\u80fd\u952e\u6765\u63a7\u5236\u7684\u3002\u901a\u8fc7“\u5916\u90e8\u63a5\u70b9”\uff0c\u53ef\u4ee5\u5bf9WEB I\/F UNIT\u7684\u9632\u76d7\u76d1\u89c6\u673a\u80fd\u8fdb\u884c\u8bbe\u5b9a\u3002\u56e0\u4e3a\u53ea\u80fd\u5728\u5c4b\u5185\u901a\u8fc7\u5f00\u5173\u89e3\u9664\u9632\u76d7\u76d1\u89c6\u673a\u80fd\uff0c\u56de\u8def\u72b6\u6001\u4e0a\u7684“\u6709\u5165\u4fb5\u8005”\u901a\u8fc7\u56de\u8def\u72b6\u6001\u548c\u8bbe\u5b9a\u7684\u6570\u636e\uff08\u76d1\u89c6\u56de\u8def\uff0c\u76d1\u89c6\u72b6\u6001\uff09\u662f\u5426\u4e00\u81f4\u6765\u5224\u65ad\u3002\u56de\u8def\u4e0d\u4e00\u81f4\u7684\u60c5\u51b5\u4e0b\uff0c\u5728\u4e00\u5b9a\u65f6\u95f4\u5185\uff0c\u5982\u679c\u6ca1\u6709\u89e3\u9664“\u9632\u76d7\u76d1\u89c6\u673a\u80fd”\uff0c\u5224\u65ad\u4e3a“\u6709\u5165\u4fb5\u8005”\uff1b\u5982\u679c\u5728\u8fd9\u6bb5\u65f6\u95f4\u5185\uff0c\u89e3\u9664\u4e86“\u9632\u76d7\u76d1\u89c6\u673a\u80fd”\uff0c\u5224\u65ad\u4e3a“\u65e0\u5165\u4fb5\u8005”\u3002\u4e0a\u8ff0\u7684“\u4e00\u5b9a\u65f6\u95f4”\uff0c\u662f\u53ef\u4ee5\u8bbe\u5b9a\u7684\u6570\u636e\u3002\u53e6\u5916\uff0c\u5f53\u901a\u8fc7\u5916\u90e8\u63a5\u70b9\u6253\u5f00“\u9632\u76d7\u76d1\u89c6\u673a\u80fd”\u65f6\uff0c\u4e3a\u4e86\u907f\u514d\u5c4b\u5185\u64cd\u4f5c\u7535\u5668\u7684\u8bef\u5224\u4e3a“\u6709\u5165\u4fb5\u8005”\uff0c\u8bbe\u8ba1\u4e86\u5ef6\u65f6\u3002<\/p>\n \n\t\u53e6\u5916\uff0c\u5728AllLightSystem\u8bbe\u8ba1\u4e86\u548cPC\u673a\u7684Interface\u3002\u548c\u8ba1\u7b97\u673a\u7684Interface\u662f\u901a\u8fc7Ethernet<\/u>\u5b9e\u73b0\u7684\u3002\u5c06AllLightSystem\u7684\u901a\u4fe1\u534f\u8bae\u6570\u636e\u8f6c\u6362\u6210\u8ba1\u7b97\u673a\u4f7f\u7528\u7684\u901a\u4fe1\u534f\u8bae\u3002\u53ea\u80fd\u5728Local\u5185\u4f7f\u7528\u3002\u8ba1\u7b97\u673a\u548cWEB I\/F UNIT\u662f\u9760Socket\u8fdb\u884c\u901a\u4fe1\u7684\u3002\u5728WEB I\/F UNIT\u4e2d\u5c01\u88c5Sokect\u7684\u901a\u4fe1\u670d\u52a1\uff0c\u8fde\u63a5\u7aef\u53e3\u901a\u8fc7\u8bbe\u5b9a\u673a\u80fd\u8bbe\u5b9a\u3002\u8ba1\u7b97\u673a\u53d1\u51fa\u8fde\u63a5\u8bf7\u6c42\u540e\uff0c\u5efa\u7acb\u8fde\u63a5\u3002\u8fde\u63a5\u5efa\u7acb\u540e\uff0c\u5982\u679cSokect\u5b58\u5728\uff0c\u8fdb\u884c\u4ee5\u4e0b\u5904\u7406\u3002\u5982\u679c\u662f\u4eceAllLightSystem\u53d1\u6765\u6570\u636e\u5305\uff0c\u6536\u5230\u7684\u6570\u636e\u5305\u52a0\u4e0aTCP\u534f\u8bae\u7684\u5305\u5934\uff0c\u5411\u8ba1\u7b97\u673a\u53d1\u9001\u3002\u5982\u679c\u662f\u4ece\u8ba1\u7b97\u673a\u53d1\u6765\u7684\u6570\u636e\u5305\uff0c\u4ece\u6536\u5230\u7684\u6570\u636e\u5305\uff08TCP\u6570\u636e\u5305\uff09\u4e2d\u53d6\u51faAllLight\u6570\u636e\u5305\uff0c\u5411AllLightSystem\u53d1\u9001AllLight\u6570\u636e\u5305\u3002<\/p>\n \n\t\u901a\u8fc7\u5916\u90e8\u63a5\u70b9\uff08AllLight\u7684\u914d\u5957\u673a\u5668\uff1aSX\uff09\u7684\u64cd\u4f5c\uff0c\u5728AllLightSystem\u7684\u7ba1\u7406\u4e0b\uff0c\u53ef\u4ee5\u5c06\u7535\u706f\uff0c\u7a7a\u8c03\u7b49\u7535\u5668\u5168\u5173\u95ed\u3002<\/p>\n \n\t3\uff0e2 \u8f6f\u4ef6\u5b9e\u73b0<\/p>\n \n\t\u8f6f\u4ef6\u6784\u6210\u56fe<\/p>\n \n\t<\/p>\n \n\tHTTP\u670d\u52a1\u5904\u7406<\/p>\n \n\t\u63a5\u6536\u4ece\u624b\u673a\u3001\u8ba1\u7b97\u673a\u53d1\u9001\u8fc7\u6765\u7684HTTP\u6570\u636e\u5305\uff0c\u901a\u8fc7HTTP\u670d\u52a1\u5c06HTTP\u6570\u636e\u89e3\u6790\u3002\u5c06\u63a5\u6536\u5230\u7684HTTP\u8bf7\u6c42\u89e3\u6790\uff0c\u6839\u636e\u8bf7\u6c42\u7684\u5185\u5bb9\uff08WEBPAGE\u8bf7\u6c42\u6216CGI\u8bf7\u6c42\uff09\uff0c\u53d1\u9001WEBPAGE\u7684\u5185\u5bb9\u6216\u8fdb\u884cCGI\u5904\u7406\u3002\u751f\u6210\u5ba2\u6237\u7aef\u8bf7\u6c42\u7684WEBPAGE\uff0c\u5c06\u8be5WEBPAGE\u9001\u5230\u5ba2\u6237\u7aef\u3002\u5982\u679c\uff0c\u8bbe\u5b9a\u6a21\u5f0f\u7684\u6570\u636e\u9650\u5236\u4e86\u8be5\u5ba2\u6237\u7aef\u8bf7\u6c42\u7684WEBPAGE\uff0c\u5c06\u9519\u8bef\u9875\u9762\u53d1\u9001\u5230\u5ba2\u6237\u7aef\u3002\u5982\u679c\u5916\u90e8\u767b\u5f55FLAG\u662f\u6709\u6548\u7684\uff0c\u8fdb\u884cHTTP\u534f\u8bae\u89e3\u6790\uff1b\u5982\u679c\u5916\u90e8\u767b\u5f55FLAG\u662f\u65e0\u6548\u7684\uff0c\u4e3a\u4e86\u7981\u6b62\u4eceInternet\u7684\u767b\u9646\uff0c\u68c0\u67e5HTTP\u8bf7\u6c42\u7684IP\u534f\u8bae\u7684\u53d1\u5305IP\u548cWEB I\/F UNIT\u7684IP\uff0c\u5b50\u7f51\u63a9\u7801\u662f\u5426\u662f\u540c\u4e00\u4e2a\u7f51\u6bb5\uff0c\u5982\u679c\u662f\u540c\u4e00\u4e2a\u7f51\u6bb5\uff0c\u8fdb\u884cHTTP\u534f\u8bae\u89e3\u6790\uff0c\u4e0d\u662f\u540c\u7f51\u6bb5\uff0c\u8fd4\u56de\u9519\u8bef\u9875\u9762\u3002\u6839\u636eHTTP\u8bf7\u6c42\u7684CGI\u79cd\u7c7b\u53ef\u4ee5\u8fdb\u884c\u5404\u79cd\u8bf7\u6c42\uff0c\u4f8b\u5982\uff0c\u8fdb\u884c\u7528\u6237\u8ba4\u8bc1\u5904\u7406\u662f\u901a\u8fc7\u624b\u673a\u3001\u8ba1\u7b97\u673a\u5b9e\u884c\u7528\u6237\u8ba4\u8bc1\uff0c\u548c\u767b\u5f55\u5728WEB I\/F UNIT\u4e0a\u7684\u5185\u5bb9\u8fdb\u884c\u4e00\u81f4\u6027\u68c0\u67e5\u3002\uff08\u7528\u6237ID\uff0cPASSWORD\uff09\u5982\u679c\u4e00\u81f4\u5219\u8ba4\u8bc1\u5931\u8d25\u8ba1\u6570=0\uff0c\u5c06“\u4e3b\u83dc\u5355”\u753b\u9762\u7684HTTP\u6570\u636e\u53d1\u9001\u5230\u5ba2\u6237\u7aef\u3002\u5982\u679c\u4e0d\u4e00\u81f4\u5219\u8ba4\u8bc1\u5931\u8d25\u8ba1\u6570+1\uff0c“\u767b\u5f55\u5931\u8d25”\u753b\u9762\u7684HTTP\u6570\u636e\u53d1\u9001\u5230\u5ba2\u6237\u7aef\u3002\u5982\u679c\u8fde\u7eed\u767b\u5f553\u6b21\u4e0d\u4e00\u81f4\uff0c\u5916\u90e8\u767b\u5f55\u65e0\u6548\u3002\u8fdb\u884c\u9632\u76d7\u76d1\u89c6\u8bbe\u5b9a\u5904\u7406\u662f\u5c06\u9632\u76d7\u76d1\u89c6\u673a\u80fdFLAG\u8bbe\u5b9a\u6210\u6709\u6548\uff1f\u65e0\u6548\uff0c\u63a7\u5236SL\u7684LED<\/u>\uff08\u6709\u6548\uff1a\u7ea2\u706fON\uff0c\u65e0\u6548\uff1a\u7eff\u706fON\uff09\uff0c\u66f4\u65b0“\u4e3b\u83dc\u5355”\u753b\u9762\u7684\u9632\u76d7\u76d1\u89c6\u72b6\u6001\u3002\u5904\u7406\u540e\uff0c\u5c06“\u4e3b\u83dc\u5355”\u753b\u9762\u7684HTTP\u9001\u5230\u5ba2\u6237\u7aef\u3002<\/p>\n \n\t<\/p>\n \n\t\u8fd9\u91cc\u9700\u8981\u8bf4\u660e\u7684\u662f\uff0c\u7531\u4e8eWEB I\/F UNIT\u7684GlobalIP\u5730\u5740\u662f\u52a8\u6001\u5206\u914d\u7684\uff0c\u6240\u4ee5\u5fc5\u987b\u6784\u5efaAllLight\u7684\u4e13\u7528\u670d\u52a1\u5668\uff0c\u5e76\u4e14\u5728\u8be5\u670d\u52a1\u5668\u4e0a\u5c06WEB I\/F UNIT\u7684GlobalIP\u767b\u5f55\u3002GlobalIP\u7684\u767b\u5f55\u9700\u8981\u5b9a\u671f\u6267\u884c\uff0c\u5728AllLight\u4e13\u7528\u670d\u52a1\u5668\u4e0a\uff0c\u662f\u5c06WEB I\/F UNIT\u7684IP\u5730\u5740\u548cMAC\u5730\u5740\u7ed1\u5b9a\u7684\uff0c\u56e0\u6b64\uff0cWEB I\/F UNIT\u5fc5\u987b\u5c06\u81ea\u5df1\u7684MAC\u5730\u5740\u901a\u8fc7HTTP\u534f\u8bae\u4f20\u9001\u5230AllLight\u4e13\u7528\u670d\u52a1\u5668\u4e0a\u3002<\/p>\n \n\tAllLight\u54cd\u5e94\u7684\u63a5\u6536\u5904\u7406<\/p>\n \n\t\u901a\u8fc7PIC\u7684UART<\/u>\u673a\u80fd\uff0c\u63a5\u6536AllLightSystem\u53d1\u51fa\u7684\u6570\u636e\u5305\u3002\u53ea\u54cd\u5e94AllLight ControlUnit\u53d1\u51fa\u7684\u6570\u636e\u3002\uff08\u5176\u5b83\u6570\u636e\u5ffd\u7565\u3002\uff09\u5982\u679c\u8fdc\u7a0b\u64cd\u4f5c\u673a\u80fdFLAG\uff0c\u9632\u76d7\u76d1\u89c6\u673a\u80fdFLAG\u6709\u6548\uff0c\u6839\u636e\u63a5\u6536\u5230\u7684\u6570\u636e\u66f4\u65b0WEB I\/F UNIT\u7684\u56de\u8def\u72b6\u6001\u6570\u636e\u3002\u5982\u679cPC I\/F\u673a\u80fdFLAG\u6709\u6548\uff0c\u7531\u4e8e\u53d1\u9001\u7684\u6570\u636e\u662f\u6709AllLight\u534f\u8bae\u7684\u4fe1\u606f\uff0c\u4e3a\u4e86\u4f7f\u63a5\u53d7\u7684\u6570\u636e\u80fd\u591f\u8fdb\u884cPC I\/F\u5904\u7406\uff0c\u9664\u53bbAllLight\u534f\u8bae\u7684\u62a5\u6587\u5934\u3002<\/p>\n \n\tAllLight\u6307\u4ee4\u53d1\u9001\u5904\u7406<\/p>\n \n\t\u8fdc\u7a0b\u64cd\u4f5c\u673a\u80fd\u5982\u679cFLAG\u6709\u6548\uff0c\u5b9e\u884c\u6709\u6548\u56de\u8def\u68c0\u67e5\u3002\u6709\u6548\u56de\u8def\u8bbe\u5b9a\u6570\u636eCheck\uff0c\u5982\u679c\u6307\u4ee4\u63a7\u5236\u7684\u56de\u8def\u8fdc\u7a0b\u64cd\u4f5c\u6709\u6548\uff0c\u5b9e\u884c\u6307\u4ee4\u53d1\u9001\u5904\u7406\u3002\u6839\u636e\u624b\u673a\u53d1\u51fa\u7684\u8981\u6c42\uff0c\u5c06“ON”\uff0c“OFF”\u6307\u4ee4\u8f6c\u6362\u6210AllLight\u534f\u8bae\u6570\u636e\u53d1\u9001\u3002\u5982\u679c\u662f\u901a\u8fc7PC I\/F\u5904\u7406\uff0c\u53bb\u6389TCP\u6570\u636e\u7684\u62a5\u5934\uff0c\u5c06\u53d6\u51fa\u7684\u6570\u636e\u52a0\u4e0aAllLight\u534f\u8bae\u7684\u62a5\u5934\uff0c\u53d1\u9001\u6570\u636e\u5305\u3002<\/p>\n \n\t4 \u7ed3\u8bba<\/p>\n \n\t\u672c\u6587\u4ecb\u7ecd\u4e86\u4e00\u4e2a\u57fa\u4e8e\u5bf9\u5d4c\u5165\u5f0fWeb\u6280\u672f\u7684\u5bb6\u5ead\u8fdc\u7a0b\u64cd\u4f5c\u76d1\u63a7\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\uff0c\u4e3b\u8981\u5b9e\u73b0\u901a\u8fc7\u624b\u673a\u6216\u7535\u8111\u5bf9\u81ea\u5df1\u5bb6\u7528\u7535\u5668\u8fdb\u884c\u76d1\u63a7\u548c\u8fdc\u7a0b\u64cd\u4f5c\uff0c\u6781\u5927\u5730\u4fdd\u8bc1\u4e86\u5bb6\u5ead\u7684\u5b89\u5168\uff0c\u4e5f\u65b9\u4fbf\u4e86\u4eba\u4eec\u7684\u751f\u6d3b\u3002\u672c\u6587\u4f5c\u8005\u7684\u521b\u65b0\u70b9\u5c31\u662f\uff1a\u670d\u52a1\u5668\u7684\u8bbe\u8ba1\u57fa\u4e8e\u5d4c\u5165\u5f0fWEB\u6280\u672f\uff0c\u652f\u6301\u52a8\u6001IP\uff0c\u53ef\u4ee5\u76f4\u63a5\u8fdb\u5165\u4ee5\u592a\u7f51<\/u>\uff0c\u7528\u6237\u65e0\u9700\u4f7f\u7528\u4e13\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u8f6f\u4ef6\uff0c\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u6d4f\u89c8\u5668\u8fdb\u884c\u64cd\u4f5c\uff0c\u901a\u8fc7HTTP\u4e0e\u5d4c\u5165\u5f0fWEB\u8fdb\u884c\u901a\u4fe1\u3002\u901a\u8fc7\u8fd9\u6b21\u9879\u76ee\u7684\u5b8c\u6210\uff0c\u76f8\u4fe1\u968f\u7740\u7f51\u7edc\u76d1\u63a7\u6280\u672f\u7684\u53d1\u5c55\uff0c\u57fa\u4e8e\u5d4c\u5165\u5f0fWEB\u7684\u8fdc\u7a0b\u64cd\u4f5c\u7cfb\u7edf\u5fc5\u5c06\u6709\u826f\u597d\u7684\u53d1\u5c55\u524d\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" 1 \u5f15\u8a00 21\u4e16\u7eaa\u662f\u5d4c\u5165\u5f0f\u8ba1\u7b97\u7cfb\u7edf\u65f6\u4ee3\uff0c\u4eba\u4eec\u65e5\u5e38\u751f\u6d3b\u548c\u5de5\u4f5c\u4e2d\u6240\u63a5\u89e6\u7684\u4eea\u5668\u4e0e\u8bbe\u5907\u4e2d\uff0c\u90fd\u5c06\u5d4c\u5165\u5177\u6709\u5f3a\u5927\u8ba1\u7b97\u80fd\u529b\u7684\u5fae\u5904\u7406\u5668\u3002\u5d4c\u5165\u5f0f\u7cfb\u7edf\u662f\u4efb\u610f\u5305\u542b\u4e00\u4e2a\u53ef\u7f16\u7a0b \u8ba1\u7b97\u673a \u7684\u8bbe\u5907\uff0c\u4f46\u662f\u8fd9<\/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\/3145"}],"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=3145"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/3145\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3145"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}