{"id":42467,"date":"2025-06-09T08:15:51","date_gmt":"2025-06-09T00:15:51","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/42467.html"},"modified":"2025-06-09T08:15:51","modified_gmt":"2025-06-09T00:15:51","slug":"%e4%b8%b4%e6%97%b6%e9%99%90%e9%80%9f%e6%9c%8d%e5%8a%a1%e5%99%a8tsrs%e5%8a%9f%e8%83%bd%e4%bb%bf%e7%9c%9f%e8%ae%be%e8%ae%a1%e4%b8%8e%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/42467.html","title":{"rendered":"\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668TSRS\u529f\u80fd\u4eff\u771f\u8bbe\u8ba1\u4e0e\u5b9e\u73b0"},"content":{"rendered":"<p>\u968f\u4fbf\u4e71\u5199\u7684&#xff0c;\u4e2a\u4eba\u5907\u4efd<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"732\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609001550-684627b60380b.png\" width=\"1402\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\">\u5217\u8f66\u8fd0\u884c\u63a7\u5236\u7cfb\u7edf<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:center\">\u8bfe\u7a0b\u8bbe\u8ba1\u62a5\u544a<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:center\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\">\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668TSRS\u529f\u80fd\u4eff\u771f\u8bbe\u8ba1\u4e0e\u5b9e\u73b0<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\">2025\u5e745\u6708<\/p>\n<\/p>\n<hr \/>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#0f4761\">\u76ee\u5f55<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u7b2c 1 \u7ae0 \u7eea\u8bba&#8230; 3<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">1.1. \u80cc\u666f\u4e0e\u610f\u4e49&#8230; 3<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">1.2. \u56fd\u5185\u5916\u53d1\u5c55\u53ca\u5e94\u7528\u73b0\u72b6&#8230; 4<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">1.2.1. \u56fd\u5185\u53d1\u5c55\u73b0\u72b6&#8230; 4<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">1.2.2. \u56fd\u5916\u53d1\u5c55\u73b0\u72b6&#8230; 5<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u7b2c 2 \u7ae0 \u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668&#xff08;TSRS&#xff09;\u7cfb\u7edf\u6982\u8ff0&#8230; 5<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">2.1. CTCS \u5217\u63a7\u7cfb\u7edf\u4e0eTSRS\u7684\u5b9a\u4f4d&#8230; 5<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">2.1.1. CTCS-2\/3\u7ea7\u5217\u63a7\u7cfb\u7edf\u6982\u8ff0&#8230; 5<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">2.1.2. TSRS\u5728\u5217\u63a7\u7cfb\u7edf\u4e2d\u7684\u4f5c\u7528&#8230; 6<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">2.2. TSRS\u7cfb\u7edf\u603b\u4f53\u8981\u6c42&#8230; 7<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">2.2.1. \u529f\u80fd\u6027\u8981\u6c42&#8230; 7<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">2.2.2. \u5b89\u5168\u6027\u4e0e\u53ef\u9760\u6027\u8981\u6c42&#8230; 7<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">2.3. TSRS\u8bbe\u5907\u7ec4\u6210\u4e0e\u4ea4\u4e92\u5173\u7cfb&#8230; 8<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u7b2c 3 \u7ae0 TSRS\u6280\u672f\u8981\u6c42\u4e0e\u6838\u5fc3\u529f\u80fd\u5b9e\u73b0&#8230; 10<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">3.1. TSRS\u6570\u636e\u6a21\u578b\u8bbe\u8ba1\u4e0e\u5b9e\u73b0&#8230; 10<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">3.1.1. TSR\u6570\u636e\u7ed3\u6784&#8230; 10<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">3.1.2. TSR\u72b6\u6001\u7ba1\u7406&#8230; 11<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">3.2. TSRS\u7ba1\u7406\u6a21\u5757\u529f\u80fd\u5b9e\u73b0&#8230; 12<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">3.2.1. \u9650\u901f\u8bbe\u7f6e\u89c4\u5219\u4e0e\u6821\u9a8c&#xff08;Create\/Update TSR&#xff09;&#8230; 12<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">3.2.1.1. \u6b63\u7ebf\u9650\u901f\u8bbe\u7f6e\u6821\u9a8c&#8230; 13<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">3.2.1.2. \u4fa7\u7ebf\u9650\u901f\u8bbe\u7f6e\u6821\u9a8c&#8230; 14<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">3.2.1.3. \u65f6\u95f4\u6821\u9a8c&#8230; 15<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">3.2.2. \u9650\u901f\u547d\u4ee4\u64cd\u4f5c\u8981\u6c42&#xff08;Issue\/Cancel\/Delete TSR&#xff09;&#8230; 15<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">3.2.3. \u9650\u901f\u547d\u4ee4\u72b6\u6001\u5468\u671f\u6027\u5224\u5b9a&#8230; 16<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">3.3. TSRS\u670d\u52a1\u7aef\u901a\u4fe1\u673a\u5236&#8230; 17<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">3.3.1. TCP\/IP\u901a\u4fe1\u534f\u8bae\u8bbe\u8ba1&#8230; 17<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">3.4. TSRM\u529f\u80fd\u6a21\u62df&#8230; 20<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">3.4.1. \u9650\u901f\u547d\u4ee4\u5217\u8868\u4e0e\u8be6\u60c5&#8230; 20<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">3.4.2. \u5ba2\u6237\u7aef\u8fde\u63a5\u72b6\u6001\u663e\u793a&#8230; 21<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">3.4.3. \u64cd\u4f5c\u65e5\u5fd7\u8bb0\u5f55&#8230; 21<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u7b2c 4 \u7ae0 TSRS\u5ba2\u6237\u7aef\u529f\u80fd\u4e0e\u4ea4\u4e92&#8230; 21<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">4.1. \u5ba2\u6237\u7aef\u8fde\u63a5\u7ba1\u7406&#8230; 21<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">4.1.1. \u8fde\u63a5\u4e0e\u65ad\u5f00&#8230; 22<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">4.1.2. \u81ea\u52a8\u91cd\u8fde\u673a\u5236&#8230; 23<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">4.2. \u9650\u901f\u4fe1\u606f\u63a5\u6536\u4e0e\u5c55\u793a&#8230; 23<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">4.2.1. TSRS_UPDATE\u6d88\u606f\u5904\u7406&#8230; 23<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">4.2.2. \u6709\u6548\u9650\u901f\u4fe1\u606f\u7b5b\u9009\u4e0e\u663e\u793a&#8230; 24<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">4.3. \u5ba2\u6237\u7aef\u8bf7\u6c42\u4e0e\u65e5\u5fd7&#8230; 24<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">4.3.1. \u5237\u65b0\u8bf7\u6c42&#8230; 24<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">4.3.2. \u5ba2\u6237\u7aef\u64cd\u4f5c\u65e5\u5fd7&#8230; 25<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u7b2c 5 \u7ae0 \u7cfb\u7edf\u5b9e\u73b0\u4e0e\u6d4b\u8bd5&#8230; 25<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">5.1. \u7f16\u7a0b\u8bed\u8a00\u4e0e\u5f00\u53d1\u73af\u5883&#8230; 25<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">5.2. GUI\u754c\u9762\u8bbe\u8ba1&#8230; 26<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">5.2.1. \u670d\u52a1\u7aefGUI 26<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">5.2.2. \u5ba2\u6237\u7aefGUI 27<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">5.3. \u529f\u80fd\u6d4b\u8bd5\u4e0e\u9a8c\u8bc1&#8230; 27<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">5.3.1. \u9650\u901f\u521b\u5efa\u4e0e\u6821\u9a8c\u6d4b\u8bd5&#8230; 27<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">5.3.2. \u9650\u901f\u751f\u547d\u5468\u671f\u7ba1\u7406\u6d4b\u8bd5&#8230; 28<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">5.3.3. \u901a\u4fe1\u4e0e\u6570\u636e\u540c\u6b65\u6d4b\u8bd5&#8230; 29<\/p>\n<p style=\"margin-left:42pt;margin-right:0;text-align:justify\">5.3.4. \u5f02\u5e38\u5904\u7406\u6d4b\u8bd5&#8230; 30<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u7b2c 6 \u7ae0 \u603b\u7ed3\u4e0e\u5c55\u671b&#8230; 31<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">6.1. \u7814\u7a76\u6210\u679c&#8230; 31<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">6.2. \u4e0d\u8db3\u4e4b\u5904&#8230; 31<\/p>\n<p style=\"margin-left:21pt;margin-right:0;text-align:justify\">6.3. \u672a\u6765\u5c55\u671b&#8230; 32<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<hr \/>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">\u7b2c 1 \u7ae0 \u7eea\u8bba<\/span><\/p>\n<h3 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">1.1. \u80cc\u666f\u4e0e\u610f\u4e49<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u968f\u7740\u4e2d\u56fd\u94c1\u8def\u4e8b\u4e1a\u7684\u98de\u901f\u53d1\u5c55&#xff0c;\u9ad8\u901f\u94c1\u8def\u7f51\u7edc\u7684\u5efa\u8bbe\u548c\u8fd0\u8425\u8fbe\u5230\u4e86\u524d\u6240\u672a\u6709\u7684\u89c4\u6a21\u548c\u6c34\u5e73\u3002\u5217\u8f66\u8fd0\u884c\u63a7\u5236\u7cfb\u7edf&#xff08;CTCS&#xff09;\u4f5c\u4e3a\u9ad8\u901f\u94c1\u8def\u5b89\u5168\u8fd0\u8425\u7684\u6838\u5fc3\u4fdd\u969c&#xff0c;\u5176\u91cd\u8981\u6027\u4e0d\u8a00\u800c\u55bb\u3002\u5728\u590d\u6742\u7684\u94c1\u8def\u8fd0\u8425\u73af\u5883\u4e2d&#xff0c;\u9664\u4e86\u9884\u8bbe\u7684\u7ebf\u8def\u53c2\u6570\u5916&#xff0c;\u8fd8\u7ecf\u5e38\u4f1a\u9047\u5230\u56e0\u65bd\u5de5\u3001\u81ea\u7136\u707e\u5bb3\u3001\u8bbe\u5907\u6545\u969c\u7b49\u7a81\u53d1\u60c5\u51b5\u5bfc\u81f4\u7684\u4e34\u65f6\u6027\u901f\u5ea6\u9650\u5236\u3002\u8fd9\u4e9b\u4e34\u65f6\u9650\u901f&#xff08;TSR&#xff0c;Temporary Speed Restriction&#xff09;\u9700\u8981\u88ab\u53ca\u65f6\u3001\u51c6\u786e\u5730\u53d1\u5e03\u3001\u7ba1\u7406\u548c\u64a4\u9500&#xff0c;\u4ee5\u786e\u4fdd\u5217\u8f66\u8fd0\u884c\u5b89\u5168&#xff0c;\u540c\u65f6\u6700\u5927\u9650\u5ea6\u5730\u51cf\u5c11\u5bf9\u8fd0\u8f93\u6548\u7387\u7684\u5f71\u54cd\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4f20\u7edf\u7684\u4e34\u65f6\u9650\u901f\u7ba1\u7406\u65b9\u5f0f\u53ef\u80fd\u4f9d\u8d56\u4eba\u5de5\u4f20\u8fbe\u3001\u7eb8\u8d28\u8bb0\u5f55\u6216\u8f83\u4e3a\u5206\u6563\u7684\u7535\u5b50\u7cfb\u7edf&#xff0c;\u8fd9\u5728\u9ad8\u901f\u3001\u9ad8\u5bc6\u5ea6\u8fd0\u8425\u7684\u73b0\u4ee3\u94c1\u8def\u4e2d\u5b58\u5728\u663e\u8457\u7684\u5c40\u9650\u6027&#xff1a;\u4fe1\u606f\u4f20\u9012\u6548\u7387\u4f4e\u3001\u51c6\u786e\u6027\u96be\u4ee5\u4fdd\u969c\u3001\u7ba1\u7406\u590d\u6742\u4e14\u6613\u51fa\u9519&#xff0c;\u4e25\u91cd\u5f71\u54cd\u4e86\u5217\u8f66\u8fd0\u884c\u5b89\u5168\u548c\u8c03\u5ea6\u6307\u6325\u7684\u81ea\u52a8\u5316\u6c34\u5e73\u3002\u4e3a\u6b64&#xff0c;\u6784\u5efa\u4e00\u5957\u96c6\u4e2d\u5316\u3001\u81ea\u52a8\u5316\u3001\u5b89\u5168\u53ef\u9760\u7684\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668&#xff08;TSRS&#xff0c;Temporary Speed Restriction Server&#xff09;\u7cfb\u7edf\u663e\u5f97\u5c24\u4e3a\u91cd\u8981\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSRS\u65e8\u5728\u5b9e\u73b0\u5bf9\u4e34\u65f6\u9650\u901f\u547d\u4ee4\u7684\u96c6\u4e2d\u7ba1\u7406\u548c\u9ad8\u6548\u5206\u53d1\u3002\u5b83\u4f5c\u4e3a\u5217\u63a7\u7cfb\u7edf\u5730\u9762\u8bbe\u5907\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206&#xff0c;\u80fd\u591f\u63a5\u6536\u6765\u81ea\u8c03\u5ea6\u4e2d\u5fc3\u7684\u9650\u901f\u8bbe\u7f6e\u548c\u53d6\u6d88\u6307\u4ee4&#xff0c;\u5bf9\u547d\u4ee4\u53c2\u6570\u8fdb\u884c\u4e25\u683c\u6821\u9a8c&#xff0c;\u5e76\u5c06\u6709\u6548\u7684\u9650\u901f\u4fe1\u606f\u53ca\u65f6\u3001\u51c6\u786e\u5730\u4f20\u8f93\u7ed9\u65e0\u7ebf\u95ed\u585e\u4e2d\u5fc3&#xff08;RBC&#xff09;\u3001\u5217\u63a7\u4e2d\u5fc3&#xff08;TCC&#xff09;\u7b49\u5217\u63a7\u5730\u9762\u8bbe\u5907&#xff0c;\u8fdb\u800c\u7531RBC\u548cTCC\u5c06\u9650\u901f\u4fe1\u606f\u4f20\u9012\u7ed9\u8f66\u8f7d\u8bbe\u5907&#xff0c;\u5b9e\u73b0\u5bf9\u5217\u8f66\u7684\u5b9e\u65f6\u901f\u5ea6\u9632\u62a4\u3002\u4e00\u4e2a\u9ad8\u6548\u3001\u53ef\u9760\u7684TSRS\u7cfb\u7edf\u5bf9\u4e8e\u63d0\u5347\u94c1\u8def\u8fd0\u8f93\u7684\u5b89\u5168\u88d5\u5ea6\u3001\u4f18\u5316\u8c03\u5ea6\u6307\u6325\u6d41\u7a0b\u3001\u63d0\u9ad8\u6574\u4f53\u8fd0\u8425\u6548\u7387\u5177\u6709\u6df1\u8fdc\u7684\u610f\u4e49\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u672c\u6b21\u8bfe\u7a0b\u8bbe\u8ba1\u6b63\u662f\u57fa\u4e8e\u4e0a\u8ff0\u80cc\u666f&#xff0c;\u65e8\u5728\u901a\u8fc7\u6a21\u62df\u5b9e\u73b0\u4e00\u4e2a\u7b80\u5316\u7684TSRS\u7cfb\u7edf&#xff0c;\u6df1\u5165\u7406\u89e3\u5176\u6838\u5fc3\u529f\u80fd\u3001\u6280\u672f\u8981\u6c42\u4ee5\u53ca\u5728\u5217\u63a7\u7cfb\u7edf\u4e2d\u7684\u4f5c\u7528\u3002\u901a\u8fc7\u5b9e\u9645\u7f16\u7a0b&#xff0c;\u638c\u63e1TSRS\u7684\u6570\u636e\u7ba1\u7406\u3001\u901a\u4fe1\u673a\u5236\u3001\u547d\u4ee4\u5904\u7406\u903b\u8f91\u548c\u7528\u6237\u754c\u9762\u8bbe\u8ba1&#xff0c;\u4e3a\u4eca\u540e\u53c2\u4e0e\u66f4\u590d\u6742\u7684\u94c1\u8def\u4fe1\u53f7\u7cfb\u7edf\u5f00\u53d1\u6253\u4e0b\u57fa\u7840\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">1.2. \u56fd\u5185\u5916\u53d1\u5c55\u53ca\u5e94\u7528\u73b0\u72b6<\/span><\/h3>\n<h4 style=\"margin-left:0px;margin-right:0px;text-align:justify\"><span style=\"color:#0f4761\">1.2.1. \u56fd\u5185\u53d1\u5c55\u73b0\u72b6<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6211\u56fd\u5728\u5217\u8f66\u8fd0\u884c\u63a7\u5236\u7cfb\u7edf\u53ca\u76f8\u5173\u8f85\u52a9\u7cfb\u7edf\u7684\u53d1\u5c55\u4e0a&#xff0c;\u59cb\u7ec8\u575a\u6301\u201c\u5f15\u8fdb\u3001\u6d88\u5316\u3001\u5438\u6536\u3001\u518d\u521b\u65b0\u201d\u7684\u8def\u7ebf\u3002\u65e9\u671f\u501f\u9274\u6b27\u6d32ETCS&#xff08;European Train Control System&#xff09;\u6807\u51c6&#xff0c;\u7ed3\u5408\u81ea\u8eab\u56fd\u60c5&#xff0c;\u9010\u6b65\u5f62\u6210\u4e86\u5177\u6709\u4e2d\u56fd\u7279\u8272\u7684CTCS\u4f53\u7cfb\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5728\u4e34\u65f6\u9650\u901f\u7ba1\u7406\u65b9\u9762&#xff0c;\u56fd\u5185\u94c1\u8def\u884c\u4e1a\u5df2\u7ecf\u8ba4\u8bc6\u5230\u96c6\u4e2d\u7ba1\u7406\u7684\u91cd\u8981\u6027\u3002\u65e9\u671f\u7684\u5217\u63a7\u7cfb\u7edf\u53ef\u80fd\u901a\u8fc7\u5217\u63a7\u4e2d\u5fc3&#xff08;TCC&#xff09;\u6216RBC\u76f4\u63a5\u5904\u7406\u4e34\u65f6\u9650\u901f&#xff0c;\u4f46\u968f\u7740\u7ebf\u8def\u91cc\u7a0b\u7684\u589e\u957f\u548c\u9650\u901f\u4e8b\u4ef6\u7684\u589e\u591a&#xff0c;\u8feb\u5207\u9700\u8981\u4e00\u4e2a\u4e13\u95e8\u7684\u670d\u52a1\u5668\u6765\u96c6\u4e2d\u7ba1\u7406\u8fd9\u4e9b\u52a8\u6001\u4fe1\u606f\u30022012\u5e744\u6708\u9881\u5e03\u7684\u300a\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668\u6280\u672f\u89c4\u8303&#xff08;\u6682\u884c&#xff09;\u300b&#xff08;\u4ee5\u4e0b\u7b80\u79f0\u300aTSRS\u6280\u672f\u89c4\u8303\u300b&#xff09;\u6b63\u662f\u8fd9\u4e00\u9700\u6c42\u7684\u4ea7\u7269\u3002\u8be5\u89c4\u8303\u8be6\u7ec6\u5b9a\u4e49\u4e86TSRS\u7684\u7cfb\u7edf\u9700\u6c42\u3001\u6280\u672f\u8981\u6c42\u3001\u6280\u672f\u6307\u6807\u548c\u8fd0\u884c\u73af\u5883\u8981\u6c42&#xff0c;\u4e3a\u56fd\u5185TSRS\u7684\u7814\u5236\u3001\u751f\u4ea7\u548c\u5e94\u7528\u63d0\u4f9b\u4e86\u6307\u5bfc\u6027\u6587\u4ef6\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u76ee\u524d&#xff0c;\u56fd\u5185\u5404\u94c1\u8def\u5c40\u548c\u79d1\u7814\u5355\u4f4d\u5df2\u666e\u904d\u90e8\u7f72\u548c\u4f7f\u7528\u4e86TSRS\u7cfb\u7edf&#xff0c;\u5176\u4e3b\u8981\u529f\u80fd\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li style=\"text-align:justify\">\u96c6\u4e2d\u5b58\u50a8\u548c\u7ba1\u7406&#xff1a; \u5c06\u6240\u6709\u4e34\u65f6\u9650\u901f\u547d\u4ee4\u7edf\u4e00\u5b58\u50a8&#xff0c;\u65b9\u4fbf\u67e5\u8be2\u3001\u7f16\u8f91\u548c\u7ef4\u62a4\u3002<\/li>\n<li style=\"text-align:justify\">\u53c2\u6570\u6821\u9a8c&#xff1a; \u5bf9\u8f93\u5165\u7684\u9650\u901f\u547d\u4ee4\u8fdb\u884c\u4e25\u683c\u7684\u5408\u6cd5\u6027\u6821\u9a8c&#xff0c;\u4f8b\u5982\u9650\u901f\u503c\u8303\u56f4\u3001\u91cc\u7a0b\u6807\u683c\u5f0f\u3001\u65f6\u95f4\u903b\u8f91\u7b49&#xff0c;\u9632\u6b62\u975e\u6cd5\u6216\u51b2\u7a81\u7684\u547d\u4ee4\u8fdb\u5165\u7cfb\u7edf\u3002<\/li>\n<li style=\"text-align:justify\">\u72b6\u6001\u7ba1\u7406&#xff1a; \u6839\u636e\u9650\u901f\u547d\u4ee4\u7684\u751f\u547d\u5468\u671f&#xff08;\u62df\u5b9a\u3001\u4e0b\u8fbe\u3001\u53d6\u6d88\u3001\u5931\u6548\u7b49&#xff09;\u8fdb\u884c\u72b6\u6001\u8f6c\u6362&#xff0c;\u5e76\u63d0\u4f9b\u76f8\u5e94\u7684\u64cd\u4f5c\u63a5\u53e3\u3002<\/li>\n<li style=\"text-align:justify\">\u4fe1\u606f\u5206\u53d1&#xff1a; \u901a\u8fc7\u6807\u51c6\u63a5\u53e3&#xff08;\u5982\u4e0eRBC\u3001TCC\u3001CTC\u7684\u63a5\u53e3&#xff09;\u5c06\u9650\u901f\u4fe1\u606f\u4e0b\u8fbe\u7ed9\u76f8\u5173\u5730\u9762\u8bbe\u5907\u3002<\/li>\n<li style=\"text-align:justify\">\u8f85\u52a9\u63d0\u793a&#xff1a; \u63d0\u4f9b\u9650\u901f\u8bbe\u7f6e\u65f6\u673a\u3001\u8d85\u65f6\u672a\u6267\u884c\u7b49\u8f85\u52a9\u63d0\u793a\u529f\u80fd&#xff0c;\u652f\u6301\u8c03\u5ea6\u51b3\u7b56\u3002<\/li>\n<li style=\"text-align:justify\">\u65e5\u5fd7\u8bb0\u5f55&#xff1a; \u8be6\u7ec6\u8bb0\u5f55\u6240\u6709\u64cd\u4f5c\u548c\u7cfb\u7edf\u4e8b\u4ef6&#xff0c;\u4fbf\u4e8e\u95ee\u9898\u8ffd\u6eaf\u548c\u8d23\u4efb\u8ba4\u5b9a\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8fd9\u4e9bTSRS\u7cfb\u7edf\u5728\u5b9e\u9645\u8fd0\u8425\u4e2d\u53d1\u6325\u4e86\u5173\u952e\u4f5c\u7528&#xff0c;\u663e\u8457\u63d0\u5347\u4e86\u4e34\u65f6\u9650\u901f\u4fe1\u606f\u7684\u7ba1\u7406\u6548\u7387\u548c\u5b89\u5168\u6027\u3002\u5728\u4eff\u771f\u6d4b\u8bd5\u9886\u57df&#xff0c;\u56fd\u5185\u9ad8\u6821\u548c\u79d1\u7814\u673a\u6784\u4e5f\u5f00\u5c55\u4e86\u76f8\u5173\u7814\u7a76&#xff0c;\u4f8b\u5982\u5170\u5dde\u4ea4\u901a\u5927\u5b66\u5e38\u5cf0\u57282017\u5e74\u5b8c\u6210\u7684\u7855\u58eb\u8bba\u6587\u300aCTCS-2\u7ea7\u5217\u63a7\u4eff\u771f\u57f9\u8bad\u7cfb\u7edf\u2014\u2014\u4e34\u65f6\u9650\u901f\u5b50\u7cfb\u7edf\u7684\u7814\u7a76\u300b[21]\u5c31\u4e13\u95e8\u9488\u5bf9\u4e34\u65f6\u9650\u901f\u5b50\u7cfb\u7edf\u8fdb\u884c\u4e86\u6df1\u5165\u63a2\u8ba8\u548c\u4eff\u771f\u5b9e\u73b0&#xff0c;\u4e3a\u672c\u6b21\u8bbe\u8ba1\u63d0\u4f9b\u4e86\u91cd\u8981\u53c2\u8003\u3002<\/p>\n<h4 style=\"margin-left:0px;margin-right:0px;text-align:justify\"><span style=\"color:#0f4761\">1.2.2. \u56fd\u5916\u53d1\u5c55\u73b0\u72b6<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5728\u56fd\u9645\u4e0a&#xff0c;\u7279\u522b\u662f\u6b27\u6d32&#xff0c;\u4e34\u65f6\u9650\u901f\u7684\u7ba1\u7406\u901a\u5e38\u96c6\u6210\u5728ETCS\u4f53\u7cfb\u4e2d\u3002ETCS L2\/L3\u7cfb\u7edf\u4f9d\u8d56RBC\u4e0e\u8f66\u8f7d\u8bbe\u5907\u8fdb\u884c\u65e0\u7ebf\u901a\u4fe1&#xff0c;\u4e34\u65f6\u9650\u901f\u4fe1\u606f\u4f5c\u4e3a\u884c\u8f66\u8bb8\u53ef\u6570\u636e\u7684\u4e00\u90e8\u5206&#xff0c;\u7531RBC\u901a\u8fc7\u65e0\u7ebf\u94fe\u8def\u76f4\u63a5\u4e0b\u53d1\u7ed9\u5217\u8f66\u3002\u6b27\u6d32\u7684RBC\u672c\u8eab\u5c31\u627f\u62c5\u4e86\u52a8\u6001\u6570\u636e\u7684\u7ba1\u7406\u548c\u4e0b\u53d1\u529f\u80fd&#xff0c;\u56e0\u6b64&#xff0c;\u53ef\u80fd\u4e0d\u8bbe\u72ec\u7acb\u4e8eRBC\u4e4b\u5916\u7684\u201cTSRS\u201d\u5b9e\u4f53&#xff0c;\u800c\u662f\u5c06\u4e34\u65f6\u9650\u901f\u7ba1\u7406\u903b\u8f91\u5185\u5d4c\u5728RBC\u6216\u4e0e\u4e4b\u7d27\u5bc6\u8026\u5408\u7684\u4e2d\u592e\u7ba1\u7406\u7cfb\u7edf\u4e2d\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4f8b\u5982&#xff0c;ETCS\u5141\u8bb8\u901a\u8fc7Generic Balise Group&#xff08;\u901a\u7528\u5e94\u7b54\u5668\u7ec4&#xff09;\u6216ETCS\u65e0\u7ebf\u7535\u7f51\u7edc\u4f20\u8f93\u4e34\u65f6\u9650\u901f\u4fe1\u606f\u3002\u64cd\u4f5c\u5458\u5728\u4e2d\u592e\u4ea4\u901a\u7ba1\u7406\u7cfb\u7edf&#xff08;TMS&#xff0c;Traffic Management System&#xff09;\u4e2d\u8f93\u5165\u4e34\u65f6\u9650\u901f\u4fe1\u606f&#xff0c;\u8fd9\u4e9b\u4fe1\u606f\u968f\u540e\u88ab\u4f20\u8f93\u5230\u76f8\u5173\u7684RBC\u3002RBC\u5728\u6784\u5efa\u884c\u8f66\u8bb8\u53ef\u65f6&#xff0c;\u4f1a\u6839\u636e\u8fd9\u4e9b\u9650\u901f\u4fe1\u606f\u52a8\u6001\u8c03\u6574\u5141\u8bb8\u901f\u5ea6\u66f2\u7ebf&#xff0c;\u5e76\u4e0b\u53d1\u7ed9\u5217\u8f66\u3002ETCS\u7cfb\u7edf\u7684\u8bbe\u8ba1\u5f3a\u8c03\u4e86\u6570\u636e\u7684\u5b89\u5168\u6027\u548c\u4e92\u64cd\u4f5c\u6027&#xff0c;\u786e\u4fdd\u4e0d\u540c\u5382\u5546\u7684\u8bbe\u5907\u80fd\u591f\u534f\u540c\u5de5\u4f5c\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5c3d\u7ba1\u540d\u79f0\u548c\u5177\u4f53\u5b9e\u73b0\u53ef\u80fd\u6709\u6240\u5dee\u5f02&#xff0c;\u4f46\u56fd\u5185\u5916\u5bf9\u4e8e\u4e34\u65f6\u9650\u901f\u7ba1\u7406\u7684\u6838\u5fc3\u9700\u6c42\u662f\u5171\u901a\u7684&#xff1a;\u786e\u4fdd\u52a8\u6001\u53d8\u5316\u7684\u9650\u901f\u4fe1\u606f\u80fd\u591f\u9ad8\u6548\u3001\u51c6\u786e\u3001\u5b89\u5168\u5730\u4ece\u7ba1\u7406\u7aef\u4f20\u9012\u5230\u5217\u8f66\u7aef&#xff0c;\u5e76\u5bf9\u5217\u8f66\u8fd0\u884c\u8fdb\u884c\u5b9e\u65f6\u9632\u62a4\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<h2 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">\u7b2c 2 \u7ae0 \u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668&#xff08;TSRS&#xff09;\u7cfb\u7edf\u6982\u8ff0<\/span><\/h2>\n<h3 style=\"margin-left:0px;margin-right:0px;text-align:justify\"><span style=\"color:#0f4761\">2.1. CTCS \u5217\u63a7\u7cfb\u7edf\u4e0eTSRS\u7684\u5b9a\u4f4d<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e2d\u56fd\u5217\u8f66\u8fd0\u884c\u63a7\u5236\u7cfb\u7edf&#xff08;CTCS&#xff09;\u662f\u4fdd\u969c\u94c1\u8def\u5217\u8f66\u5b89\u5168\u9ad8\u6548\u8fd0\u884c\u7684\u6838\u5fc3\u6280\u672f\u7cfb\u7edf\u3002\u6839\u636e\u7ebf\u8def\u901f\u5ea6\u7b49\u7ea7\u548c\u529f\u80fd\u8981\u6c42\u7684\u4e0d\u540c&#xff0c;CTCS\u7cfb\u7edf\u5206\u4e3aCTCS-0\u5230CTCS-4\u4e94\u4e2a\u7b49\u7ea7\u3002\u672c\u6b21\u8bfe\u7a0b\u8bbe\u8ba1\u6d89\u53ca\u7684\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668&#xff08;TSRS&#xff09;\u4e3b\u8981\u670d\u52a1\u4e8eCTCS-2\u7ea7\u548cCTCS-3\u7ea7\u5217\u63a7\u7cfb\u7edf&#xff0c;\u8fd9\u4e24\u4e2a\u7ea7\u522b\u90fd\u5bf9\u9650\u901f\u4fe1\u606f\u7684\u52a8\u6001\u7ba1\u7406\u6709\u8f83\u9ad8\u8981\u6c42\u3002<\/p>\n<h4 style=\"margin-left:0px;margin-right:0px;text-align:justify\"><span style=\"color:#0f4761\">2.1.1. CTCS-2\/3\u7ea7\u5217\u63a7\u7cfb\u7edf\u6982\u8ff0<\/span><\/h4>\n<ul>\n<li style=\"text-align:justify\">CTCS-2\u7ea7\u5217\u63a7\u7cfb\u7edf&#xff1a; CTCS-2\u7ea7\u662f\u57fa\u4e8e\u8f68\u9053\u7535\u8def\u548c\u70b9\u5f0f\u5e94\u7b54\u5668\u4f20\u8f93\u5217\u8f66\u884c\u8f66\u8bb8\u53ef\u4fe1\u606f&#xff0c;\u5e76\u91c7\u7528\u76ee\u6807\u8ddd\u79bb\u8fde\u7eed\u901f\u5ea6\u63a7\u5236\u6a21\u5f0f\u76d1\u63a7\u5217\u8f66\u5b89\u5168\u8fd0\u884c\u7684\u5217\u63a7\u7cfb\u7edf\u3002\u5b83\u9762\u5411\u63d0\u901f\u5e72\u7ebf\u548c\u5ba2\u8fd0\u4e13\u7ebf&#xff0c;\u9002\u7528\u4e8e\u591a\u79cd\u7ebf\u8def\u901f\u5ea6\u533a\u6bb5\u3002\u5176\u4e3b\u8981\u7279\u70b9\u5305\u62ec&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5730\u9762\u8bbe\u5907&#xff1a; \u91c7\u7528ZPW-2000\u7cfb\u5217\u65e0\u7edd\u7f18\u8f68\u9053\u7535\u8def\u68c0\u6d4b\u5217\u8f66\u5360\u7528\u3001\u68c0\u67e5\u5217\u8f66\u5b8c\u6574\u6027&#xff0c;\u5e76\u8fde\u7eed\u5411\u5217\u8f66\u4f20\u9001\u884c\u8f66\u8bb8\u53ef\u3001\u524d\u65b9\u7a7a\u95f2\u95ed\u585e\u5206\u533a\u6570\u91cf\u3001\u8f66\u7ad9\u8fdb\u8def\u901f\u5ea6\u7b49\u4fe1\u606f\u3002\u70b9\u5f0f\u5e94\u7b54\u5668&#xff08;\u6709\u6e90\/\u65e0\u6e90&#xff09;\u7528\u4e8e\u63d0\u4f9b\u7cbe\u786e\u7684\u5b9a\u4f4d\u4fe1\u606f\u3001\u7ebf\u8def\u57fa\u672c\u53c2\u6570\u3001\u4ee5\u53ca\u53ef\u53d8\u4fe1\u606f\u5982\u4e34\u65f6\u9650\u901f\u548c\u8fdb\u8def\u4fe1\u606f\u3002\u5217\u63a7\u4e2d\u5fc3&#xff08;TCC&#xff09;\u662f\u5730\u9762\u8bbe\u5907\u7684\u201c\u5927\u8111\u201d&#xff0c;\u8d1f\u8d23\u5904\u7406\u8054\u9501\u8fdb\u8def\u4fe1\u606f\u3001\u751f\u6210\u884c\u8f66\u8bb8\u53ef&#xff0c;\u5e76\u901a\u8fc7\u7535\u5b50\u5355\u5143&#xff08;LEU&#xff09;\u63a7\u5236\u6709\u6e90\u5e94\u7b54\u5668\u4e0b\u53d1\u53ef\u53d8\u4fe1\u606f\u3002<\/li>\n<li style=\"text-align:justify\">\u8f66\u8f7d\u8bbe\u5907&#xff1a; \u5305\u542b\u8f66\u8f7d\u5b89\u5168\u8ba1\u7b97\u673a&#xff08;VC&#xff09;\u3001\u8f68\u9053\u7535\u8def\u4fe1\u606f\u63a5\u6536\u5355\u5143&#xff08;TCR&#xff09;\u3001\u5e94\u7b54\u5668\u4f20\u8f93\u6a21\u5757&#xff08;BTM&#xff09;\u3001\u4eba\u673a\u754c\u9762&#xff08;DMI&#xff09;\u3001\u6d4b\u901f\u6d4b\u8ddd\u5355\u5143\u7b49\u3002\u8f66\u8f7d\u8bbe\u5907\u6839\u636e\u5730\u9762\u53d1\u9001\u7684\u63a7\u8f66\u4fe1\u606f\u3001\u7ebf\u8def\u6570\u636e\u548c\u5217\u8f66\u81ea\u8eab\u53c2\u6570&#xff0c;\u5b9e\u65f6\u751f\u6210\u76ee\u6807\u8ddd\u79bb\u6a21\u5f0f\u66f2\u7ebf&#xff0c;\u5e76\u5bf9\u5217\u8f66\u901f\u5ea6\u8fdb\u884c\u8fde\u7eed\u76d1\u63a7\u548c\u9632\u62a4&#xff0c;\u9632\u6b62\u8d85\u901f\u3002<\/li>\n<li style=\"text-align:justify\">\u95ed\u585e\u65b9\u5f0f&#xff1a; \u91c7\u7528\u51c6\u79fb\u52a8\u95ed\u585e&#xff08;\u51c6\u8fde\u7eed\u95ed\u585e&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">CTCS-3\u7ea7\u5217\u63a7\u7cfb\u7edf&#xff1a; CTCS-3\u7ea7\u662f\u5728CTCS-2\u7ea7\u57fa\u7840\u4e0a\u53d1\u5c55\u800c\u6765&#xff0c;\u5176\u6838\u5fc3\u662f\u57fa\u4e8e\u65e0\u7ebf\u4f20\u8f93&#xff08;GSM-R&#xff09;\u4fe1\u606f&#xff0c;\u5e76\u91c7\u7528\u8f68\u9053\u7535\u8def\u8f85\u52a9\u68c0\u67e5\u5217\u8f66\u5360\u7528&#xff08;\u6216\u53ea\u7528\u4e8e\u68c0\u6d4b\u65ad\u8f68&#xff09;&#xff0c;\u70b9\u5f0f\u8bbe\u5907\u4e3b\u8981\u7528\u4e8e\u4f20\u9001\u5b9a\u4f4d\u4fe1\u606f\u3002CTCS-3\u7ea7\u53ef\u53e0\u52a0\u5728CTCS-2\u7ea7\u4e4b\u4e0a&#xff0c;\u5177\u6709\u66f4\u9ad8\u7684\u4f20\u8f93\u80fd\u529b\u548c\u66f4\u7075\u6d3b\u7684\u95ed\u585e\u65b9\u5f0f&#xff0c;\u9002\u7528\u4e8e\u9ad8\u901f\u5217\u8f66\u8fd0\u884c\u3002\u5176\u5173\u952e\u533a\u522b\u5728\u4e8e\u5f15\u5165\u4e86\u65e0\u7ebf\u95ed\u585e\u4e2d\u5fc3&#xff08;RBC&#xff09;&#xff0c;RBC\u901a\u8fc7GSM-R\u7f51\u7edc\u4e0e\u8f66\u8f7d\u8bbe\u5907\u8fdb\u884c\u53cc\u5411\u901a\u4fe1&#xff0c;\u5b9e\u65f6\u53d1\u9001\u884c\u8f66\u8bb8\u53ef\u548c\u9650\u901f\u4fe1\u606f&#xff0c;\u5e76\u63a5\u6536\u5217\u8f66\u4f4d\u7f6e\u62a5\u544a\u3002<\/li>\n<\/ul>\n<h4 style=\"margin-left:0px;margin-right:0px;text-align:justify\"><span style=\"color:#0f4761\">2.1.2. TSRS\u5728\u5217\u63a7\u7cfb\u7edf\u4e2d\u7684\u4f5c\u7528<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSRS\u5728CTCS-2\/3\u7ea7\u5217\u63a7\u7cfb\u7edf\u4e2d\u626e\u6f14\u7740\u4e34\u65f6\u9650\u901f\u96c6\u4e2d\u7ba1\u7406\u548c\u5206\u53d1\u4e2d\u5fc3\u7684\u89d2\u8272\u3002\u5b83\u4e0d\u76f4\u63a5\u63a7\u5236\u5217\u8f66\u6216\u4fe1\u53f7\u8bbe\u5907&#xff0c;\u800c\u662f\u4f5c\u4e3a\u8f85\u52a9\u7cfb\u7edf&#xff0c;\u4e3a\u6838\u5fc3\u5217\u63a7\u8bbe\u5907&#xff08;\u5982RBC\u3001TCC&#xff09;\u63d0\u4f9b\u51c6\u786e\u3001\u5b9e\u65f6\u7684\u4e34\u65f6\u9650\u901f\u6570\u636e\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6839\u636e\u300aTSRS\u6280\u672f\u89c4\u8303\u300b&#xff0c;TSRS\u7684\u4e3b\u8981\u5b9a\u4f4d\u548c\u4f5c\u7528\u4f53\u73b0\u5728\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762&#xff1a;<\/p>\n<ul>\n<li style=\"text-align:justify\">\u96c6\u4e2d\u7ba1\u7406\u5e73\u53f0&#xff1a; TSRS\u8d1f\u8d23\u5bf9\u7ebf\u8def\u4e0a\u7684\u6240\u6709\u4e34\u65f6\u9650\u901f\u547d\u4ee4\u8fdb\u884c\u96c6\u4e2d\u7ba1\u7406\u3002\u8fd9\u5305\u62ec\u9650\u901f\u547d\u4ee4\u7684\u5f55\u5165\u3001\u4fee\u6539\u3001\u5220\u9664\u3001\u4e0b\u8fbe\u3001\u53d6\u6d88\u7b49\u5168\u751f\u547d\u5468\u671f\u7ba1\u7406\u3002\u901a\u8fc7\u4e00\u4e2a\u7edf\u4e00\u7684\u63a5\u53e3&#xff0c;\u8c03\u5ea6\u5458\u6216\u7ef4\u62a4\u4eba\u5458\u53ef\u4ee5\u65b9\u4fbf\u5730\u64cd\u4f5c\u8fd9\u4e9b\u9650\u901f\u4fe1\u606f&#xff0c;\u907f\u514d\u4e86\u4fe1\u606f\u5206\u6563\u3001\u7ba1\u7406\u6df7\u4e71\u7684\u95ee\u9898\u3002<\/li>\n<li style=\"text-align:justify\">\u6570\u636e\u6e90\u4e0e\u5206\u53d1\u5668&#xff1a; TSRS\u63a5\u6536\u6765\u81ea\u8c03\u5ea6\u4e2d\u5fc3&#xff08;CTC&#xff09;\u7684\u4e34\u65f6\u9650\u901f\u6307\u4ee4&#xff0c;\u5e76\u5c06\u5176\u4f5c\u4e3a\u6743\u5a01\u6570\u636e\u6e90\u8fdb\u884c\u5b58\u50a8\u3002\u968f\u540e&#xff0c;\u5b83\u6839\u636e\u81ea\u8eab\u7ba1\u8f96\u8303\u56f4&#xff0c;\u5c06\u9650\u901f\u547d\u4ee4\u62c6\u5206\u5e76\u4e0b\u53d1\u7ed9\u76f8\u5173\u7684\u4e0b\u7ea7\u6267\u884c\u8bbe\u5907&#xff0c;\u5982\u65e0\u7ebf\u95ed\u585e\u4e2d\u5fc3&#xff08;RBC&#xff09;\u548c\u5217\u63a7\u4e2d\u5fc3&#xff08;TCC&#xff09;&#xff0c;\u751a\u81f3\u4e0e\u76f8\u90bb\u7684TSRS\u8fdb\u884c\u4fe1\u606f\u4ea4\u4e92\u3002\u8fd9\u4e00\u673a\u5236\u786e\u4fdd\u4e86\u9650\u901f\u4fe1\u606f\u7684\u201c\u4e00\u5904\u5f55\u5165&#xff0c;\u591a\u5904\u4f7f\u7528\u201d&#xff0c;\u51cf\u5c11\u4e86\u6570\u636e\u5197\u4f59\u548c\u4e0d\u4e00\u81f4\u7684\u98ce\u9669\u3002<\/li>\n<li style=\"text-align:justify\">\u4fe1\u606f\u6821\u9a8c\u4e0e\u4e00\u81f4\u6027\u4fdd\u969c&#xff1a; TSRS\u5bf9\u63a5\u6536\u5230\u7684\u9650\u901f\u547d\u4ee4\u53c2\u6570\u8fdb\u884c\u4e25\u683c\u7684\u5408\u6cd5\u6027\u6821\u9a8c&#xff0c;\u4f8b\u5982\u91cc\u7a0b\u6807\u7684\u6709\u6548\u6027\u3001\u9650\u901f\u503c\u7684\u5408\u89c4\u6027\u3001\u65f6\u95f4\u903b\u8f91\u7684\u6b63\u786e\u6027\u7b49&#xff08;\u89c4\u8303 5.3.1.1&#xff09;\u3002\u8fd9\u5728\u6e90\u5934\u4e0a\u907f\u514d\u4e86\u9519\u8bef\u6216\u51b2\u7a81\u7684\u9650\u901f\u4fe1\u606f\u8fdb\u5165\u5217\u63a7\u7cfb\u7edf\u3002\u540c\u65f6&#xff0c;TSRS\u8fd8\u8d1f\u8d23\u68c0\u6d4b\u4e0eTCC\u3001RBC\u7b49\u8bbe\u5907\u7684\u9650\u901f\u547d\u4ee4\u6267\u884c\u4e00\u81f4\u6027&#xff0c;\u5e76\u5728\u4e0d\u4e00\u81f4\u65f6\u8fdb\u884c\u544a\u8b66\u6216\u91c7\u53d6\u5237\u65b0\u63aa\u65bd&#xff08;\u89c4\u8303 5.7.1.5&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u8f85\u52a9\u51b3\u7b56\u4e0e\u63d0\u793a&#xff1a; TSRS\u80fd\u591f\u6839\u636e\u9650\u901f\u547d\u4ee4\u7684\u8ba1\u5212\u5f00\u59cb\u65f6\u95f4\u63d0\u524d\u5411CTC\u53d1\u9001\u6fc0\u6d3b\u63d0\u793a&#xff0c;\u6216\u5bf9\u8d85\u65f6\u672a\u6267\u884c\u7684\u547d\u4ee4\u63d0\u4f9b\u63d0\u793a&#xff08;\u89c4\u8303 5.4&#xff09;\u3002\u8fd9\u6709\u52a9\u4e8e\u8c03\u5ea6\u5458\u638c\u63e1\u9650\u901f\u547d\u4ee4\u7684\u6267\u884c\u72b6\u6001&#xff0c;\u5e76\u53ca\u65f6\u91c7\u53d6\u5fc5\u8981\u884c\u52a8\u3002<\/li>\n<li style=\"text-align:justify\">\u5b89\u5168\u4e0e\u53ef\u9760\u6027\u8981\u6c42&#xff1a; \u8003\u8651\u5230\u4e34\u65f6\u9650\u901f\u5bf9\u5217\u8f66\u8fd0\u884c\u5b89\u5168\u7684\u5173\u952e\u5f71\u54cd&#xff0c;TSRS\u672c\u8eab\u5fc5\u987b\u6ee1\u8db3\u6545\u969c-\u5b89\u5168\u539f\u5219&#xff0c;\u8fbe\u5230SIL4&#xff08;Safety Integrity Level 4&#xff09;\u5b89\u5168\u5b8c\u6574\u6027\u7b49\u7ea7\u8981\u6c42&#xff08;\u89c4\u8303 4.1.1.2&#xff09;\u3002\u8fd9\u610f\u5473\u7740TSRS\u5728\u8bbe\u8ba1\u3001\u5b9e\u73b0\u548c\u8fd0\u884c\u8fc7\u7a0b\u4e2d&#xff0c;\u9700\u8981\u91c7\u53d6\u4e25\u683c\u7684\u5b89\u5168\u63aa\u65bd&#xff0c;\u4ee5\u9632\u6b62\u56e0\u7cfb\u7edf\u81ea\u8eab\u6545\u969c\u5bfc\u81f4\u7684\u5b89\u5168\u98ce\u9669\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u603b\u800c\u8a00\u4e4b&#xff0c;TSRS\u662f\u73b0\u4ee3\u9ad8\u901f\u94c1\u8def\u5217\u8f66\u8fd0\u884c\u63a7\u5236\u7cfb\u7edf\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u73af&#xff0c;\u5b83\u901a\u8fc7\u96c6\u4e2d\u5316\u3001\u81ea\u52a8\u5316\u3001\u5b89\u5168\u53ef\u9760\u7684\u65b9\u5f0f&#xff0c;\u5b9e\u73b0\u4e86\u5bf9\u4e34\u65f6\u9650\u901f\u4fe1\u606f\u7684\u5168\u751f\u547d\u5468\u671f\u7ba1\u7406\u548c\u9ad8\u6548\u5206\u53d1&#xff0c;\u4ece\u800c\u4e3a\u5217\u8f66\u8fd0\u884c\u63d0\u4f9b\u52a8\u6001\u3001\u7cbe\u786e\u7684\u901f\u5ea6\u9632\u62a4&#xff0c;\u4fdd\u969c\u4e86\u94c1\u8def\u8fd0\u8f93\u7684\u5b89\u5168\u4e0e\u6548\u7387\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">2.2. TSRS\u7cfb\u7edf\u603b\u4f53\u8981\u6c42<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u300a\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668\u6280\u672f\u89c4\u8303&#xff08;\u6682\u884c&#xff09;\u300b&#xff08;2012\u5e744\u6708&#xff09;[CTCS-TSRS-2012-04] \u5bf9TSRS\u7684\u7cfb\u7edf\u603b\u4f53\u8981\u6c42\u8fdb\u884c\u4e86\u660e\u786e\u89c4\u5b9a&#xff0c;\u8fd9\u4e9b\u8981\u6c42\u6db5\u76d6\u4e86\u7cfb\u7edf\u7684\u529f\u80fd\u3001\u786c\u4ef6\u3001\u5b89\u5168\u6027\u548c\u53ef\u9760\u6027\u7b49\u591a\u4e2a\u65b9\u9762\u3002\u672c\u8282\u5c06\u4f9d\u636e\u89c4\u8303&#xff0c;\u7ed3\u5408\u672c\u6b21\u8bfe\u7a0b\u8bbe\u8ba1\u7684\u5b9e\u73b0\u5185\u5bb9&#xff0c;\u5bf9\u8fd9\u4e9b\u8981\u6c42\u8fdb\u884c\u6982\u8ff0\u3002<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">2.2.1. \u529f\u80fd\u6027\u8981\u6c42<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6839\u636e\u300aTSRS\u6280\u672f\u89c4\u8303\u300b4.4\u8282\u201c\u529f\u80fd\u8981\u6c42\u201d\u53ca5.2\u8282\u201c\u9650\u901f\u8bbe\u7f6e\u89c4\u5219\u201d\u30015.3\u8282\u201c\u9650\u901f\u547d\u4ee4\u7684\u64cd\u4f5c\u8981\u6c42\u201d\u7b49&#xff0c;TSRS\u5e94\u5177\u5907\u4ee5\u4e0b\u6838\u5fc3\u529f\u80fd&#xff1a;<\/p>\n<ul>\n<li style=\"text-align:justify\">\u542f\u52a8\u81ea\u68c0\u4e0e\u5b89\u5168\u4fa7\u521d\u59cb\u5316&#xff08;\u89c4\u8303 4.4.1.1, 5.1&#xff09;&#xff1a; TSRS\u542f\u52a8\u540e\u5e94\u8fdb\u884c\u5468\u671f\u6027\u8bbe\u5907\u5b8c\u6574\u6027\u81ea\u68c0&#xff0c;\u81ea\u68c0\u5931\u8d25\u5219\u7981\u6b62\u6295\u5165\u8fd0\u884c\u3002\u540c\u65f6&#xff0c;\u5e94\u8f7d\u5165\u672c\u5730\u5b58\u50a8\u7684\u9650\u901f\u547d\u4ee4\u4fe1\u606f\u5e76\u521d\u59cb\u4e3a\u672a\u6fc0\u6d3b\u72b6\u6001&#xff0c;\u5e76\u5411CTC\u8bf7\u6c42\u9650\u901f\u521d\u59cb\u5316\u786e\u8ba4\u547d\u4ee4&#xff0c;\u4e0eCTC\u65f6\u949f\u540c\u6b65\u3002<\/li>\n<li style=\"text-align:justify\">\u4e34\u65f6\u9650\u901f\u547d\u4ee4\u7ba1\u7406&#xff08;\u89c4\u8303 4.4.1.2, 5.2, 5.3&#xff09;&#xff1a; \u8fd9\u662fTSRS\u7684\u6838\u5fc3\u529f\u80fd&#xff0c;\u5305\u62ec&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5b58\u50a8&#xff1a; \u80fd\u591f\u5b58\u50a8\u53ef\u6267\u884c\u7684\u4e34\u65f6\u9650\u901f\u547d\u4ee4&#xff0c;\u4e14\u4e0d\u5b58\u50a8\u5df2\u5220\u9664\u6216\u5df2\u53d6\u6d88\u7684\u547d\u4ee4&#xff08;\u89c4\u8303 5.6&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u6821\u9a8c&#xff1a; \u5bf9\u6765\u81eaCTC\u3001\u76f8\u90bbTSRS\u53ca\u8fb9\u754c\u8f6c\u6362\u7ad9TCC\u7684\u4e34\u65f6\u9650\u901f\u547d\u4ee4\u53c2\u6570\u4fe1\u606f\u8fdb\u884c\u4e25\u683c\u6821\u9a8c&#xff08;\u89c4\u8303 5.3.1.1&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u5220\u9664&#xff1a; \u53ea\u5141\u8bb8\u5220\u9664\u5904\u4e8e\u201c\u672a\u6267\u884c\u201d\u72b6\u6001\u7684\u9650\u901f\u547d\u4ee4&#xff08;\u89c4\u8303 5.3.1.3&#xff09;&#xff0c;\u5728\u672c\u6b21\u6a21\u62df\u4e2d&#xff0c;\u201c\u672a\u6267\u884c\u201d\u4e3b\u8981\u6307\u201c\u62df\u5b9a\u201d\u3001\u201c\u5df2\u53d6\u6d88\u201d\u6216\u201c\u5df2\u5931\u6548\u201d\u72b6\u6001\u3002<\/li>\n<li style=\"text-align:justify\">\u8bbe\u7f6e&#xff1a; \u4e34\u65f6\u9650\u901f\u547d\u4ee4\u5e94\u5305\u542b\u8c03\u5ea6\u547d\u4ee4\u53f7\u3001\u7ebf\u8def\u53f7\u3001\u91cc\u7a0b\u6807\u3001\u9650\u901f\u503c\u3001\u8ba1\u5212\u6267\u884c\u65f6\u95f4\u7b49\u4fe1\u606f\u3002\u6b63\u7ebf\u548c\u4fa7\u7ebf\u9650\u901f\u6709\u4e0d\u540c\u7684\u9650\u901f\u503c\u6863\u4f4d\u548c\u91cc\u7a0b\u6807\u8bbe\u7f6e\u89c4\u5219\u3002\u6b63\u7ebf\u9650\u901f\u503c\u6309\u516b\u6863\u8bbe\u7f6e&#xff0c;\u6700\u4f4e45km\/h&#xff1b;\u4fa7\u7ebf\u9650\u901f\u503c\u8bbe45km\/h\u300180km\/h\u4e24\u6863&#xff08;\u89c4\u8303 5.2.1.1, 5.2.1.2, 5.2.1.3&#xff09;\u3002\u8d77\u7ec8\u70b9\u91cc\u7a0b\u6807\u5e94\u6309\u7ebf\u8def\u6b63\u5411\u8fd0\u884c\u65b9\u5411\u8bbe\u7f6e&#xff0c;\u4e14\u4e0d\u5f97\u8bbe\u7f6e\u5728\u7ebf\u8def\u77ed\u94fe\u70b9\u5185&#xff08;\u89c4\u8303 5.2.1.6, 5.2.1.7&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u9a8c\u8bc1\u4e0e\u4e0b\u8fbe\u6267\u884c&#xff1a; \u53ea\u5141\u8bb8\u5bf9\u201c\u672a\u6267\u884c\u201d\u7684\u547d\u4ee4\u8fdb\u884c\u9a8c\u8bc1&#xff0c;\u5e76\u53ea\u5141\u8bb8\u5bf9\u201c\u9a8c\u8bc1\u901a\u8fc7\u201d\u7684\u547d\u4ee4\u4e0b\u8fbe\u6267\u884c&#xff08;\u89c4\u8303 5.3.1.4, 5.3.1.5&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u53d6\u6d88&#xff1a; \u53ea\u63a5\u53d7\u5df2\u5904\u4e8e\u201c\u6267\u884c\u72b6\u6001\u201d\u7684\u9650\u901f\u8bbe\u7f6e\u547d\u4ee4\u7684\u53d6\u6d88\u547d\u4ee4\u7684\u9a8c\u8bc1\u6216\u6267\u884c\u64cd\u4f5c&#xff08;\u89c4\u8303 5.3.1.7&#xff09;\u3002\u53d6\u6d88\u547d\u4ee4\u4e3a\u7acb\u5373\u4e0b\u8fbe\u65b9\u5f0f&#xff0c;\u4e14\u987b\u4e0e\u8981\u53d6\u6d88\u7684\u9650\u901f\u8bbe\u7f6e\u547d\u4ee4\u53c2\u6570\u4e00\u81f4&#xff0c;\u4e0d\u5f97\u5206\u6bb5\u6216\u8986\u76d6\u53d6\u6d88&#xff08;\u89c4\u8303 5.2.1.8, 5.2.1.9&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u62c6\u5206\u4e0b\u8fbe&#xff1a; TSRS\u5e94\u6839\u636eTCC\u3001RBC\u53ca\u76f8\u90bbTSRS\u7684\u4e34\u65f6\u9650\u901f\u7ba1\u8f96\u8303\u56f4&#xff0c;\u5bf9\u4e34\u65f6\u9650\u901f\u547d\u4ee4\u8fdb\u884c\u62c6\u5206&#xff0c;\u5e76\u53d1\u9001\u7ed9\u76f8\u5e94\u6267\u884c\u8bbe\u5907&#xff08;\u89c4\u8303 5.5.1.1&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u72b6\u6001\u7efc\u5408\u4e0e\u5224\u5b9a&#xff1a; \u5bf9\u9650\u901f\u547d\u4ee4\u5728TCC\u3001RBC\u53ca\u76f8\u90bbTSRS\u7684\u9a8c\u8bc1\u548c\u6267\u884c\u7ed3\u679c\u8fdb\u884c\u5224\u5b9a&#xff0c;\u5e76\u5411CTC\u62a5\u544a\u7efc\u5408\u7ed3\u679c&#xff08;\u89c4\u8303 5.5.1.3, 5.5.1.4&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u9650\u901f\u8bbe\u7f6e\u8f85\u52a9\u63d0\u793a&#xff08;\u89c4\u8303 4.4.1.3, 5.4&#xff09;&#xff1a; TSRS\u5e94\u6839\u636e\u8ba1\u5212\u5f00\u59cb\u65f6\u95f4\u63d0\u524d\u53d1\u9001\u6fc0\u6d3b\u63d0\u793a&#xff0c;\u5e76\u5bf9\u8d85\u65f6\u672a\u6267\u884c\u7684\u547d\u4ee4\u63d0\u4f9b\u63d0\u793a\u3002<\/li>\n<li style=\"text-align:justify\">\u81ea\u8bca\u65ad\u4e0e\u7ef4\u62a4&#xff08;\u89c4\u8303 4.4.1.4&#xff09;&#xff1a; \u5177\u5907\u8bbe\u5907\u53ca\u5404\u901a\u4fe1\u63a5\u53e3\u7684\u6545\u969c\u81ea\u8bca\u65ad\u548c\u8f85\u52a9\u7ef4\u62a4\u529f\u80fd&#xff0c;\u6545\u969c\u5b9a\u4f4d\u5230\u677f\u7ea7\u6216\u53ef\u66f4\u6362\u5355\u5143\u3002<\/li>\n<li style=\"text-align:justify\">\u65f6\u949f\u540c\u6b65&#xff08;\u89c4\u8303 4.4.1.5, 5.1.1.4&#xff09;&#xff1a; \u5177\u5907\u4fdd\u6301\u4e0eCTC\u7cfb\u7edf\u65f6\u949f\u540c\u6b65\u529f\u80fd\u3002<\/li>\n<\/ul>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">2.2.2. \u5b89\u5168\u6027\u4e0e\u53ef\u9760\u6027\u8981\u6c42<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSRS\u4f5c\u4e3a\u5217\u63a7\u7cfb\u7edf\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206&#xff0c;\u5176\u5b89\u5168\u6027\u548c\u53ef\u9760\u6027\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002<\/p>\n<ul>\n<li style=\"text-align:justify\">\u6545\u969c-\u5b89\u5168\u539f\u5219\u4e0eSIL4&#xff08;\u89c4\u8303 4.1.1.2, 8.1.1.4&#xff09;&#xff1a; TSRS\u5e94\u7b26\u5408\u6545\u969c-\u5b89\u5168\u539f\u5219&#xff0c;\u6ee1\u8db3SIL4&#xff08;Safety Integrity Level 4&#xff09;\u5b89\u5168\u5b8c\u6574\u6027\u7b49\u7ea7\u8981\u6c42\u3002SIL4\u662f\u6700\u9ad8\u7ea7\u522b\u7684\u5b89\u5168\u5b8c\u6574\u6027\u7b49\u7ea7&#xff0c;\u610f\u5473\u7740\u7cfb\u7edf\u5728\u51fa\u73b0\u6545\u969c\u65f6&#xff0c;\u5fc5\u987b\u4ee5\u5b89\u5168\u65b9\u5f0f\u5931\u6548&#xff08;\u5982\u8fdb\u5165\u5b89\u5168\u72b6\u6001&#xff09;&#xff0c;\u4e14\u5176\u5931\u6548\u6982\u7387\u6781\u4f4e\u3002\u8fd9\u901a\u5e38\u8981\u6c42\u91c7\u7528\u5197\u4f59\u3001\u591a\u6837\u6027\u3001\u5931\u6548-\u5b89\u5168\u8bbe\u8ba1\u7b49\u590d\u6742\u6280\u672f\u3002<\/li>\n<li style=\"text-align:justify\">\u786c\u4ef6\u5197\u4f59\u7ed3\u6784&#xff08;\u89c4\u8303 4.1.1.3, 4.3.1.2&#xff09;&#xff1a; TSRS\u5e94\u91c7\u7528\u786c\u4ef6\u5197\u4f59\u7ed3\u6784&#xff0c;\u8bbe\u5907\u5355\u7cfb\u6545\u969c\u4e0d\u5e94\u5f71\u54cd\u7cfb\u7edf\u8fd0\u7528\u3002\u4e3b\u673a\u5e94\u91c7\u7528\u7b26\u5408\u6545\u969c-\u5b89\u5168\u539f\u5219\u7684\u5b89\u5168\u8ba1\u7b97\u673a\u5e73\u53f0\u8fdb\u884c\u5b89\u5168\u76f8\u5173\u903b\u8f91\u8fd0\u7b97\u548c\u63a7\u5236&#xff0c;\u63a5\u53e3\u5355\u5143\u4e5f\u5e94\u91c7\u7528\u786c\u4ef6\u5197\u4f59\u3002<\/li>\n<li style=\"text-align:justify\">RAMS\u8981\u6c42&#xff08;\u89c4\u8303 8.1&#xff09;&#xff1a; TSRS\u7684\u8bbe\u8ba1\u3001\u5b9e\u73b0\u8fc7\u7a0b\u5e94\u7b26\u5408GB\/T 21562-2008&#xff08;EN 50126&#xff09;\u3001EN 50128-2011\u3001EN 50129-2003\u53caTB\/T 2615-94\u7b49\u6807\u51c6\u7684\u76f8\u5173\u8981\u6c42&#xff0c;\u6db5\u76d6\u53ef\u9760\u6027&#xff08;Reliability&#xff09;\u3001\u53ef\u7528\u6027&#xff08;Availability&#xff09;\u3001\u53ef\u7ef4\u4fee\u6027&#xff08;Maintainability&#xff09;\u548c\u5b89\u5168\u6027&#xff08;Safety&#xff09;\u3002\u5176\u4e2d&#xff0c;\u5e73\u5747\u6545\u969c\u95f4\u9694\u65f6\u95f4&#xff08;MTBF&#xff09;\u5e94\u5927\u4e8e\u6216\u7b49\u4e8e10^5\u5c0f\u65f6&#xff08;\u89c4\u8303 8.1.1.3&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u5b89\u5168\u901a\u4fe1\u534f\u8bae&#xff08;\u89c4\u8303 6.1.1.6, 6.1.1.8, 6.1.1.10, 6.1.1.12&#xff09;&#xff1a; TSRS\u4e0eCTC\u3001TCC\u3001RBC\u3001\u76f8\u90bbTSRS\u4e4b\u95f4\u5e94\u901a\u8fc7\u4fe1\u53f7\u7cfb\u7edf\u5b89\u5168\u6570\u636e\u7f51\u8fde\u63a5&#xff0c;\u5e76\u91c7\u7528\u94c1\u8def\u4fe1\u53f7\u5b89\u5168\u901a\u4fe1\u534f\u8bae&#xff08;\u5982RSSP-I\/II&#xff09;\u8fdb\u884c\u4fe1\u606f\u4ea4\u4e92&#xff0c;\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u7684\u5b8c\u6574\u6027\u3001\u771f\u5b9e\u6027\u548c\u65f6\u6548\u6027\u3002<\/li>\n<li style=\"text-align:justify\">\u7535\u78c1\u517c\u5bb9\u4e0e\u9632\u96f7&#xff08;\u89c4\u8303 10&#xff09;&#xff1a; TSRS\u5e94\u7b26\u5408GB\/T 24338.5\u7b49\u7535\u78c1\u517c\u5bb9\u6807\u51c6&#xff0c;\u5177\u5907\u826f\u597d\u7684\u6297\u6270\u5ea6\u548c\u4f4e\u53d1\u5c04\u80fd\u529b\u3002\u540c\u65f6&#xff0c;\u5e94\u6ee1\u8db3TB\/T 3074-2003\u7684\u9632\u96f7\u6027\u80fd\u8981\u6c42&#xff0c;\u5177\u5907\u5bf9\u96f7\u7535\u7535\u8109\u51b2\u7684\u9632\u62a4\u80fd\u529b\u3002<\/li>\n<li style=\"text-align:justify\">\u7535\u6e90\u8981\u6c42&#xff08;\u89c4\u8303 9&#xff09;&#xff1a; TSRS\u8bbe\u5907\u7528\u7535\u4e3aI\u7ea7\u8d1f\u8377&#xff0c;\u5e94\u4f7f\u7528\u72ec\u7acb\u7684\u4e13\u7528\u7535\u6e90&#xff0c;\u4e14\u5404\u5197\u4f59\u6a21\u5757\u5e94\u91c7\u53d6\u72ec\u7acb\u7535\u6e90\u6a21\u5757&#xff0c;\u4fdd\u8bc1\u4f9b\u7535\u7684\u53ef\u9760\u6027\u3002<\/li>\n<li style=\"text-align:justify\">\u73af\u5883\u8981\u6c42&#xff08;\u89c4\u8303 11&#xff09;&#xff1a; TSRS\u5e94\u80fd\u5728\u7279\u5b9a\u7684\u73af\u5883\u6e29\u5ea6\u3001\u6e7f\u5ea6\u548c\u6d77\u62d4\u9ad8\u5ea6\u8303\u56f4\u5185\u7a33\u5b9a\u5de5\u4f5c\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u672c\u6b21\u8bfe\u7a0b\u8bbe\u8ba1\u5728\u6a21\u62df\u5b9e\u73b0\u65f6&#xff0c;\u4e3b\u8981\u805a\u7126\u4e8e\u529f\u80fd\u6027\u8981\u6c42\u7684\u5b9e\u73b0&#xff0c;\u5e76\u5bf9\u90e8\u5206\u5b89\u5168\u6027\u8981\u6c42&#xff08;\u5982\u901a\u4fe1\u534f\u8bae\u7684\u957f\u5ea6\u524d\u7f00\u3001JSON\u5c01\u88c5&#xff0c;\u4ee5\u53ca\u72b6\u6001\u6821\u9a8c\u903b\u8f91&#xff09;\u8fdb\u884c\u4e86\u7b80\u5316\u6a21\u62df\u3002\u5bf9\u4e8e\u786c\u4ef6\u5197\u4f59\u3001SIL4\u7b49\u7ea7\u7684\u4e25\u683c\u8bba\u8bc1\u548c\u6d4b\u8bd5&#xff0c;\u4ee5\u53ca\u590d\u6742\u7684RAMS\u6307\u6807\u548c\u7535\u78c1\u517c\u5bb9\u3001\u9632\u96f7\u7b49\u7269\u7406\u5c42\u9762\u7684\u8981\u6c42&#xff0c;\u53d7\u9650\u4e8e\u4eff\u771f\u73af\u5883\u548c\u65f6\u95f4&#xff0c;\u5e76\u672a\u8fdb\u884c\u6df1\u5165\u5b9e\u73b0&#xff0c;\u4f46\u4ee3\u7801\u8bbe\u8ba1\u4e2d\u4f53\u73b0\u4e86\u6a21\u5757\u5316\u3001\u53ef\u6269\u5c55\u6027\u7684\u601d\u8def&#xff0c;\u4e3a\u672a\u6765\u7684\u5b89\u5168\u589e\u5f3a\u9884\u7559\u4e86\u7a7a\u95f4\u3002<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">2.3. TSRS\u8bbe\u5907\u7ec4\u6210\u4e0e\u4ea4\u4e92\u5173\u7cfb<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6839\u636e\u300aTSRS\u6280\u672f\u89c4\u8303\u300b4.2\u8282\u201c\u8bbe\u5907\u7ec4\u6210\u201d\u53ca6.1\u8282\u201c\u63a5\u53e3\u8981\u6c42\u201d&#xff0c;TSRS\u7cfb\u7edf\u901a\u5e38\u7531\u4e3b\u673a\u3001\u7ef4\u62a4\u7ec8\u7aef&#xff08;TSRM&#xff09;\u548c\u63a5\u53e3\u5355\u5143\u7ec4\u6210&#xff0c;\u5e76\u4e0e\u591a\u79cd\u5916\u90e8\u8bbe\u5907\u8fdb\u884c\u4fe1\u606f\u4ea4\u4e92\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSRS\u8bbe\u5907\u7ec4\u6210&#xff1a;<\/p>\n<li style=\"text-align:justify\">\u4e3b\u673a&#xff1a; \u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668\u7684\u6838\u5fc3&#xff0c;\u8d1f\u8d23\u5b9e\u73b0\u4e34\u65f6\u9650\u901f\u547d\u4ee4\u7684\u5b58\u50a8\u3001\u6821\u9a8c\u3001\u7ba1\u7406\u3001\u62c6\u5206\u3001\u4e0b\u8fbe\u7b49\u6838\u5fc3\u903b\u8f91\u529f\u80fd\u3002\u5b83\u5e94\u91c7\u7528\u7b26\u5408\u6545\u969c-\u5b89\u5168\u539f\u5219\u7684\u5b89\u5168\u8ba1\u7b97\u673a\u5e73\u53f0\u3002<\/li>\n<li style=\"text-align:justify\">\u7ef4\u62a4\u7ec8\u7aef&#xff08;TSRM&#xff09;&#xff1a; \u7528\u4e8eTSRS\u7684\u7ef4\u62a4\u4e0e\u8bb0\u5f55\u529f\u80fd\u3002\u901a\u5e38\u63d0\u4f9b\u56fe\u5f62\u7528\u6237\u754c\u9762&#xff0c;\u4f9b\u8c03\u5ea6\u5458\u6216\u7ef4\u62a4\u4eba\u5458\u8fdb\u884c\u9650\u901f\u547d\u4ee4\u7684\u62df\u5b9a\u3001\u67e5\u770b\u3001\u64cd\u4f5c&#xff0c;\u4ee5\u53ca\u67e5\u8be2\u7cfb\u7edf\u65e5\u5fd7\u3001\u76d1\u63a7\u7cfb\u7edf\u72b6\u6001\u7b49\u3002TSRM\u901a\u8fc7\u4ee5\u592a\u7f51\u4e0e\u4e3b\u673a\u8fdb\u884c\u6570\u636e\u901a\u4fe1\u3002<\/li>\n<li style=\"text-align:justify\">\u63a5\u53e3\u5355\u5143&#xff1a; \u5b9e\u73b0TSRS\u4e0e\u5916\u90e8\u8bbe\u5907\u7684\u4fe1\u606f\u4ea4\u4e92\u529f\u80fd\u3002\u63a5\u53e3\u5355\u5143\u901a\u5e38\u91c7\u7528\u786c\u4ef6\u5197\u4f59\u7ed3\u6784&#xff0c;\u786e\u4fdd\u901a\u4fe1\u7684\u53ef\u9760\u6027\u3002<\/li>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSRS\u4e0e\u5176\u4ed6\u8bbe\u5907\u7684\u8fde\u63a5\u5173\u7cfb\u4e0e\u4fe1\u606f\u4ea4\u4e92&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSRS\u4f5c\u4e3a\u4e00\u4e2a\u4e2d\u5fc3\u5316\u7684\u9650\u901f\u7ba1\u7406\u7cfb\u7edf&#xff0c;\u4e0e\u5217\u63a7\u7cfb\u7edf\u5185\u7684\u591a\u4e2a\u5173\u952e\u8bbe\u5907\u7d27\u5bc6\u76f8\u8fde&#xff0c;\u5f62\u6210\u590d\u6742\u7684\u901a\u4fe1\u7f51\u7edc\u3002\u4e3b\u8981\u7684\u4ea4\u4e92\u5173\u7cfb\u5982\u4e0b&#xff1a;<\/p>\n<ul>\n<li style=\"text-align:justify\">\u4e0e\u5217\u63a7\u4e2d\u5fc3&#xff08;CTC&#xff09;&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u8fde\u63a5\u65b9\u5f0f&#xff1a; TSRS\u4e0eCTC\u4e4b\u95f4\u901a\u8fc7\u5197\u4f59\u7684\u4e13\u75282M\u6570\u5b57\u901a\u9053\u4e92\u8fde&#xff08;\u89c4\u8303 6.1.1.3&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u4fe1\u606f\u4ea4\u4e92&#xff1a;\n<ul>\n<li style=\"text-align:justify\">CTC\u5411TSRS\u4e0b\u8fbe\u4e34\u65f6\u9650\u901f\u7684\u8bbe\u7f6e\u3001\u4fee\u6539\u3001\u53d6\u6d88\u3001\u5220\u9664\u7b49\u64cd\u4f5c\u547d\u4ee4&#xff08;\u89c4\u8303 5.2.1.10&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">TSRS\u5411CTC\u62a5\u544a\u9650\u901f\u547d\u4ee4\u7684\u9a8c\u8bc1\u7ed3\u679c\u3001\u6267\u884c\u7ed3\u679c\u3001\u72b6\u6001\u53d8\u5316&#xff08;\u5982\u6fc0\u6d3b\u63d0\u793a\u3001\u8d85\u65f6\u672a\u8bbe\u7f6e\u63d0\u793a\u3001\u672a\u77e5\u72b6\u6001\u8b66\u793a\u7b49&#xff09;&#xff0c;\u4ee5\u53ca\u81ea\u8eab\u7684\u521d\u59cb\u5316\u72b6\u6001&#xff08;\u89c4\u8303 5.3.1.9, 5.4.1.1, 5.5.1.3, 5.5.1.4, 5.5.1.5, 5.7.1.1&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">TSRS\u4e0eCTC\u65f6\u949f\u540c\u6b65&#xff08;\u89c4\u8303 5.1.1.4&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u5b89\u5168\u534f\u8bae\u91c7\u7528RSSP-II&#xff0c;TSRS\u4e3a\u670d\u52a1\u5668\u7aef&#xff08;\u89c4\u8303 6.1.1.6&#xff09;\u3002\u5e94\u7528\u534f\u8bae\u9075\u5faa\u300aTSRS-CTC\u63a5\u53e3\u89c4\u8303\u300b\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u4e0e\u65e0\u7ebf\u95ed\u585e\u4e2d\u5fc3&#xff08;RBC&#xff09;&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u8fde\u63a5\u65b9\u5f0f&#xff1a; TSRS\u4e0eRBC\u4e4b\u95f4\u901a\u8fc7\u4fe1\u53f7\u7cfb\u7edf\u5b89\u5168\u6570\u636e\u7f51\u8fde\u63a5&#xff08;\u89c4\u8303 6.1.1.2&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u4fe1\u606f\u4ea4\u4e92&#xff1a; TSRS\u6839\u636eRBC\u7684\u7ba1\u8f96\u8303\u56f4&#xff0c;\u5bf9\u9650\u901f\u547d\u4ee4\u8fdb\u884c\u62c6\u5206\u540e\u4e0b\u53d1\u7ed9RBC\u6267\u884c\u3002RBC\u5c06\u9650\u901f\u4fe1\u606f\u4f20\u9012\u7ed9\u8f66\u8f7d\u8bbe\u5907\u8fdb\u884c\u9632\u62a4\u3002TSRS\u9700\u8981\u5224\u5b9aRBC\u5bf9\u9650\u901f\u547d\u4ee4\u7684\u9a8c\u8bc1\u548c\u6267\u884c\u7ed3\u679c&#xff08;\u89c4\u8303 5.5.1.1, 5.5.1.3, 5.5.1.4&#xff09;\u3002\u5f53TSRS\u91cd\u542f\u6216\u901a\u4fe1\u4e2d\u65ad\u6062\u590d\u65f6&#xff0c;\u9700\u8981\u5bf9RBC\u9650\u901f\u547d\u4ee4\u5237\u65b0&#xff08;\u89c4\u8303 5.5.1.6&#xff09;\u3002RBC\u91cd\u542f\u65f6&#xff0c;TSRS\u5e94\u5bf9\u5176\u8865\u53d1\u9650\u901f\u547d\u4ee4&#xff08;\u89c4\u8303 5.5.1.7&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u5b89\u5168\u534f\u8bae\u91c7\u7528RSSP-II&#xff0c;TSRS\u4e3a\u670d\u52a1\u5668\u7aef&#xff08;\u89c4\u8303 6.1.1.10&#xff09;\u3002\u5e94\u7528\u534f\u8bae\u9075\u5faa\u300aRBC-TSRS\u63a5\u53e3\u89c4\u8303\u300b\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u4e0e\u5217\u63a7\u4e2d\u5fc3&#xff08;TCC&#xff09;&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u8fde\u63a5\u65b9\u5f0f&#xff1a; TSRS\u4e0eTCC\u4e4b\u95f4\u901a\u8fc7\u4fe1\u53f7\u7cfb\u7edf\u5b89\u5168\u6570\u636e\u7f51\u8fde\u63a5&#xff08;\u89c4\u8303 6.1.1.2&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u4fe1\u606f\u4ea4\u4e92&#xff1a; \u4e0eRBC\u7c7b\u4f3c&#xff0c;TSRS\u5411TCC\u4e0b\u53d1\u62c6\u5206\u540e\u7684\u9650\u901f\u547d\u4ee4&#xff0c;\u5e76\u5224\u5b9a\u5176\u9a8c\u8bc1\u548c\u6267\u884c\u7ed3\u679c\u3002TCC\u83b7\u53d6\u9650\u901f\u4fe1\u606f\u540e&#xff0c;\u53ef\u80fd\u901a\u8fc7\u6709\u6e90\u5e94\u7b54\u5668\u4e0b\u53d1\u7ed9\u5217\u8f66\u3002<\/li>\n<li style=\"text-align:justify\">\u5b89\u5168\u534f\u8bae\u91c7\u7528RSSP-I&#xff08;\u89c4\u8303 6.1.1.8&#xff09;\u3002\u5e94\u7528\u534f\u8bae\u9075\u5faa\u300aTSRS-TCC\u63a5\u53e3\u89c4\u8303\u300b\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u4e0e\u76f8\u90bbTSRS&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u8fde\u63a5\u65b9\u5f0f&#xff1a; TSRS\u4e0e\u76f8\u90bbTSRS\u4e4b\u95f4\u901a\u8fc7\u4fe1\u53f7\u7cfb\u7edf\u5b89\u5168\u6570\u636e\u7f51\u8fde\u63a5&#xff08;\u89c4\u8303 6.1.1.2&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u4fe1\u606f\u4ea4\u4e92&#xff1a; \u8de8\u8c03\u5ea6\u53f0\u754c\u7684\u4e34\u65f6\u9650\u901f\u547d\u4ee4\u9700\u7531\u4e24\u4fa7\u8c03\u5ea6\u53f0\u4eba\u5de5\u62c6\u5206\u540e\u5206\u522b\u4e0b\u8fbe&#xff08;\u89c4\u8303 5.2.1.11&#xff09;\u3002\u76f8\u90bbTSRS\u4e4b\u95f4\u9700\u8981\u8fdb\u884c\u9650\u901f\u547d\u4ee4\u7684\u534f\u8c03\u548c\u5237\u65b0&#xff0c;\u4ee5\u4fdd\u8bc1\u8de8\u7ba1\u754c\u9650\u901f\u547d\u4ee4\u7684\u8fde\u8d2f\u6027\u548c\u4e00\u81f4\u6027&#xff08;\u89c4\u8303 5.5.1.6, 5.7.1.3&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u5b89\u5168\u534f\u8bae\u91c7\u7528RSSP-II&#xff0c;TSRS\u8bbe\u5907\u7f16\u53f7\u8f83\u5c0f\u8005\u4e3a\u670d\u52a1\u5668\u7aef&#xff08;\u89c4\u8303 6.1.1.12&#xff09;\u3002\u5e94\u7528\u534f\u8bae\u9075\u5faa\u300aTSRS-TSRS\u63a5\u53e3\u89c4\u8303\u300b\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u4e0e\u73b0\u6709\u8f6c\u6362\u7ad9TCC&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5bf9\u4e8e\u8bbe\u6709TSRS\u7684\u7ebf\u8def\u4e0e\u672a\u8bbeTSRS\u7684\u7ebf\u8def\u8854\u63a5\u5904&#xff0c;TSRS\u4ece\u8f6c\u6362\u7ad9TCC\u83b7\u53d6\u9650\u901f\u547d\u4ee4&#xff0c;\u5e76\u5411\u8f6c\u6362\u7ad9\u4e0b\u8fbe\u9650\u901f\u547d\u4ee4&#xff08;\u89c4\u8303 5.2.1.12&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5728\u672c\u6b21 TSRSui.py \u7684\u5b9e\u73b0\u4e2d&#xff0c;\u6211\u4eec\u6a21\u62df\u4e86TSRS\u7684\u4e3b\u673a\u529f\u80fd&#xff0c;\u5e76\u8bbe\u8ba1\u4e86\u4e0e\u7ef4\u62a4\u7ec8\u7aef&#xff08;TSRM&#xff09;\u76f8\u7ed3\u5408\u7684GUI\u754c\u9762\u3002\u540c\u65f6&#xff0c;\u901a\u8fc7TCP\/IP\u901a\u4fe1\u6a21\u62df\u4e86\u4e0e\u5916\u90e8\u201c\u5ba2\u6237\u7aef\u201d&#xff08;\u53ef\u4ee5\u4ee3\u8868RBC\u3001TCC\u6216\u76f8\u90bbTSRS&#xff09;\u7684\u8fde\u63a5&#xff0c;\u5b9e\u73b0\u4e86\u9650\u901f\u547d\u4ee4\u7684\u521b\u5efa\u3001\u7ba1\u7406\u548c\u5411\u5ba2\u6237\u7aef\u7684\u5e7f\u64ad\u66f4\u65b0\u3002\u867d\u7136\u672a\u5b8c\u5168\u5b9e\u73b0\u6240\u6709\u63a5\u53e3\u534f\u8bae\u7684\u7ec6\u8282&#xff08;\u5982RSSP-I\/II&#xff09;&#xff0c;\u4f46\u91c7\u7528\u4e86\u957f\u5ea6\u524d\u7f00&#043;JSON\u7684\u6d88\u606f\u5c01\u88c5\u65b9\u5f0f&#xff0c;\u6a21\u62df\u4e86\u5e94\u7528\u5c42\u6d88\u606f\u4f20\u8f93\u7684\u57fa\u672c\u5b89\u5168\u8981\u6c42&#xff0c;\u5e76\u5b9e\u73b0\u4e86\u6838\u5fc3\u7684\u4e1a\u52a1\u903b\u8f91\u4ea4\u4e92\u3002<\/p>\n<hr \/>\n<h2 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">\u7b2c 3 \u7ae0 TSRS\u6280\u672f\u8981\u6c42\u4e0e\u6838\u5fc3\u529f\u80fd\u5b9e\u73b0<\/span><\/h2>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSRSui.py \u6587\u4ef6\u4f5c\u4e3a\u672c\u6b21\u8bfe\u7a0b\u8bbe\u8ba1\u7684\u6838\u5fc3\u5b9e\u73b0&#xff0c;\u4e3b\u8981\u6a21\u62df\u4e86\u300a\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668\u6280\u672f\u89c4\u8303&#xff08;\u6682\u884c&#xff09;\u300b\u4e2d\u5bf9TSRS\u4e3b\u673a\u548c\u90e8\u5206TSRM\u7684\u529f\u80fd\u8981\u6c42\u3002\u672c\u7ae0\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u6570\u636e\u6a21\u578b\u3001\u6838\u5fc3\u7ba1\u7406\u903b\u8f91\u4ee5\u53ca\u901a\u4fe1\u673a\u5236\u7684\u5b9e\u73b0\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.1. TSRS\u6570\u636e\u6a21\u578b\u8bbe\u8ba1\u4e0e\u5b9e\u73b0<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e3a\u4e86\u6709\u6548\u5730\u7ba1\u7406\u4e34\u65f6\u9650\u901f\u547d\u4ee4&#xff0c;\u7cfb\u7edf\u9996\u5148\u9700\u8981\u5b9a\u4e49\u4e00\u4e2a\u6e05\u6670\u3001\u5b8c\u6574\u7684\u6570\u636e\u7ed3\u6784\u6765\u8868\u793a\u4e00\u4e2a\u9650\u901f\u547d\u4ee4\u3002\u5728 TSRSui.py \u4e2d&#xff0c;TSR \u7c7b\u627f\u62c5\u4e86\u8fd9\u4e00\u89d2\u8272\u3002<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.1.1. TSR\u6570\u636e\u7ed3\u6784<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSR \u7c7b&#xff08;Temporary Speed Restriction&#xff09;\u5bf9\u5e94\u4e86\u89c4\u8303 5.2.1.1 \u4e2d\u5bf9\u4e34\u65f6\u9650\u901f\u547d\u4ee4\u4fe1\u606f\u7684\u8981\u6c42&#xff0c;\u5e76\u589e\u52a0\u4e86\u7cfb\u7edf\u5185\u90e8\u7ba1\u7406\u6240\u9700\u7684\u5b57\u6bb5\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">class TSR:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 def __init__(self, data):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.id &#061; data.get(&#039;id&#039;, str(uuid.uuid4()))\u00a0 # \u552f\u4e00\u6807\u8bc6\u7b26&#xff0c;\u4f7f\u7528UUID\u751f\u6210<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.dispatch_command_no &#061; data.get(&#039;dispatch_command_no&#039;, &#039;&#039;)\u00a0 # \u8c03\u5ea6\u547d\u4ee4\u53f7<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.line &#061; data.get(&#039;line&#039;, &#039;&#039;)\u00a0 # \u7ebf\u8def\u53f7 (\u4f8b\u5982 \u4eac\u6caa\u9ad8\u94c1)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.line_type &#061; data.get(&#039;line_type&#039;, &#039;\u6b63\u7ebf&#039;)\u00a0 # \u7ebf\u8def\u7c7b\u578b: &#039;\u6b63\u7ebf&#039; \u6216 &#039;\u4fa7\u7ebf&#039;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.track &#061; data.get(&#039;track&#039;, &#039;&#039;)\u00a0 # \u80a1\u9053 (\u4f8b\u5982 \u4e0a\u884c\u6b63\u7ebf, \u4e0b\u884c\u4fa7\u7ebf)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.start_location &#061; data.get(&#039;start_location&#039;, &#039;&#039;)\u00a0 # \u8d77\u59cb\u91cc\u7a0b\u6807 (\u89c4\u8303 5.2.1.1)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.start_block_section &#061; data.get(&#039;start_block_section&#039;, &#039;&#039;)\u00a0 # \u8d77\u59cb\u6b63\u5411\u95ed\u585e\u5206\u533a\u53f7 (\u89c4\u8303 5.2.1.1)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.end_location &#061; data.get(&#039;end_location&#039;, &#039;&#039;)\u00a0 # \u7ec8\u70b9\u91cc\u7a0b\u6807 (\u89c4\u8303 5.2.1.1)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.end_block_section &#061; data.get(&#039;end_block_section&#039;, &#039;&#039;)\u00a0 # \u7ec8\u70b9\u6b63\u5411\u95ed\u585e\u5206\u533a\u53f7 (\u89c4\u8303 5.2.1.1)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.speed_limit &#061; int(data.get(&#039;speed_limit&#039;, 0))\u00a0 # \u9650\u901f\u503c (\u89c4\u8303 5.2.1.1)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.station_no &#061; data.get(&#039;station_no&#039;, &#039;&#039;)\u00a0 # \u8f66\u7ad9\u7f16\u53f7 (\u4ec5\u4fa7\u7ebf\u9700\u8981, \u89c4\u8303 5.2.1.1)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u65f6\u95f4\u5b57\u6bb5\u5904\u7406&#xff1a;\u4eceISO\u683c\u5f0f\u5b57\u7b26\u4e32\u6216datetime\u5bf9\u8c61\u8f6c\u6362<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 start_time &#061; data.get(&#039;start_time&#039;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if isinstance(start_time, str):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.start_time &#061; datetime.fromisoformat(start_time) if start_time else None<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 elif isinstance(start_time, datetime):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.start_time &#061; start_time<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 else:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.start_time &#061; None<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 end_time &#061; data.get(&#039;end_time&#039;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if isinstance(end_time, str):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.end_time &#061; datetime.fromisoformat(end_time) if end_time else None<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 elif isinstance(end_time, datetime):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.end_time &#061; end_time<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 else:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.end_time &#061; None<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.status &#061; data.get(&#039;status&#039;, &#039;\u62df\u5b9a&#039;)\u00a0 # \u72b6\u6001: \u62df\u5b9a, \u5df2\u4e0b\u8fbe, \u5df2\u53d6\u6d88, \u5df2\u5931\u6548, \u672a\u77e5\u72b6\u6001<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.operator &#061; data.get(&#039;operator&#039;, &#039;\u672a\u77e5&#039;)\u00a0 # \u64cd\u4f5c\u5458<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8bbe\u8ba1\u8981\u70b9\u4e0e\u89c4\u8303\u5bf9\u5e94&#xff1a;<\/p>\n<ul>\n<li style=\"text-align:justify\">\u552f\u4e00\u6807\u8bc6\u7b26 id&#xff1a; \u4f7f\u7528 uuid.uuid4() \u751f\u6210&#xff0c;\u786e\u4fdd\u6bcf\u6761\u9650\u901f\u547d\u4ee4\u5728\u5168\u7403\u8303\u56f4\u5185\u7684\u552f\u4e00\u6027&#xff0c;\u4fbf\u4e8e\u7cfb\u7edf\u5185\u90e8\u7ba1\u7406\u548c\u8de8\u7cfb\u7edf\u5f15\u7528\u3002<\/li>\n<li style=\"text-align:justify\">\u5fc5\u586b\u4fe1\u606f&#xff1a; dispatch_command_no\u3001line\u3001track\u3001start_location\u3001end_location\u3001speed_limit\u3001start_time\u3001end_time \u8fd9\u4e9b\u5b57\u6bb5\u76f4\u63a5\u5bf9\u5e94\u89c4\u8303 5.2.1.1 \u7684\u8981\u6c42\u3002<\/li>\n<li style=\"text-align:justify\">\u7ebf\u8def\u7c7b\u578b line_type&#xff1a; \u533a\u5206\u201c\u6b63\u7ebf\u201d\u548c\u201c\u4fa7\u7ebf\u201d&#xff0c;\u8fd9\u662f\u56e0\u4e3a\u4e24\u8005\u5728\u9650\u901f\u503c\u6863\u4f4d\u548c\u91cc\u7a0b\u6807\u8bbe\u7f6e\u4e0a\u5b58\u5728\u5dee\u5f02&#xff08;\u89c4\u8303 5.2.1.2, 5.2.1.3&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u91cc\u7a0b\u6807\u4e0e\u95ed\u585e\u5206\u533a&#xff1a; start_location, end_location, start_block_section, end_block_section \u5bf9\u5e94\u89c4\u8303\u5bf9\u9650\u901f\u533a\u6bb5\u4f4d\u7f6e\u7684\u63cf\u8ff0\u3002\u7279\u522b\u5730&#xff0c;\u5bf9\u4e8e\u4fa7\u7ebf&#xff0c;\u91cc\u7a0b\u6807\u56fa\u5b9a\u4e3a K0000&#043;000 \u548c K9999&#043;999&#xff0c;\u4e14\u9700\u589e\u52a0 station_no \u5b57\u6bb5&#xff08;\u89c4\u8303 5.2.1.1&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u9650\u901f\u503c speed_limit&#xff1a; \u5b58\u50a8\u9650\u901f\u7684\u5177\u4f53\u6570\u503c&#xff0c;\u540e\u7eed\u4f1a\u6839\u636e\u7ebf\u8def\u7c7b\u578b\u8fdb\u884c\u5408\u6cd5\u6027\u6821\u9a8c\u3002<\/li>\n<li style=\"text-align:justify\">\u65f6\u95f4\u5b57\u6bb5 start_time \u548c end_time&#xff1a; \u5b58\u50a8\u8ba1\u5212\u6267\u884c\u5f00\u59cb\u548c\u7ed3\u675f\u65f6\u95f4\u3002\u4f7f\u7528 datetime \u5bf9\u8c61\u65b9\u4fbf\u8fdb\u884c\u65f6\u95f4\u6bd4\u8f83\u548c\u683c\u5f0f\u5316\u3002\u5728\u6570\u636e\u4f20\u8f93\u65f6&#xff0c;\u4f1a\u8f6c\u6362\u4e3aISO\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u8fdb\u884c\u5e8f\u5217\u5316\u3002<\/li>\n<li style=\"text-align:justify\">\u72b6\u6001 status&#xff1a; \u8fd9\u662f\u4e00\u4e2a\u5173\u952e\u5b57\u6bb5&#xff0c;\u7528\u4e8e\u8868\u793a\u9650\u901f\u547d\u4ee4\u7684\u751f\u547d\u5468\u671f&#xff0c;\u5305\u62ec\u201c\u62df\u5b9a\u201d\u3001\u201c\u5df2\u4e0b\u8fbe\u201d\u3001\u201c\u5df2\u53d6\u6d88\u201d\u3001\u201c\u5df2\u5931\u6548\u201d\u7b49\u3002\u8fd9\u4e0e\u89c4\u8303 5.3 \u8282\u7684\u201c\u9650\u901f\u547d\u4ee4\u7684\u64cd\u4f5c\u8981\u6c42\u201d\u548c 5.5.1.4\/5.5.1.5 \u5bf9\u9650\u901f\u72b6\u6001\u7684\u5224\u5b9a\u7d27\u5bc6\u76f8\u5173\u3002<\/li>\n<li style=\"text-align:justify\">\u64cd\u4f5c\u5458 operator&#xff1a; \u8bb0\u5f55\u5bf9\u9650\u901f\u547d\u4ee4\u8fdb\u884c\u64cd\u4f5c\u7684\u7528\u6237\u6216\u7cfb\u7edf\u5b9e\u4f53&#xff0c;\u4fbf\u4e8e\u8ffd\u6eaf\u3002<\/li>\n<\/ul>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.1.2. TSR\u72b6\u6001\u7ba1\u7406<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSR \u7c7b\u4e2d\u5305\u542b\u4e86\u4e24\u4e2a\u8f85\u52a9\u65b9\u6cd5 is_active() \u548c is_expired() \u7528\u4e8e\u5224\u65ad\u9650\u901f\u547d\u4ee4\u7684\u5f53\u524d\u72b6\u6001&#xff1a;<\/p>\n<ul>\n<li style=\"text-align:justify\">is_active() \u65b9\u6cd5&#xff1a;<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">def is_active(self):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 &#034;&#034;&#034;\u5224\u65ad\u5f53\u524dTSR\u662f\u5426\u5728\u751f\u6548\u65f6\u95f4\u5185\u4e14\u72b6\u6001\u4e3a&#039;\u5df2\u4e0b\u8fbe&#039;&#034;&#034;&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 now &#061; datetime.now()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 return (self.status &#061;&#061; &#039;\u5df2\u4e0b\u8fbe&#039; and<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.start_time and self.end_time and<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.start_time &lt;&#061; now &lt;&#061; self.end_time)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6b64\u65b9\u6cd5\u5224\u65ad\u9650\u901f\u547d\u4ee4\u662f\u5426\u5f53\u524d\u6b63\u5728\u6267\u884c\u3002\u5b83\u8981\u6c42\u547d\u4ee4\u72b6\u6001\u4e3a\u201c\u5df2\u4e0b\u8fbe\u201d&#xff0c;\u5e76\u4e14\u5f53\u524d\u65f6\u95f4\u5728\u8ba1\u5212\u7684\u751f\u6548\u65f6\u95f4\u8303\u56f4\u5185\u3002\u8fd9\u5bf9\u4e8e\u5ba2\u6237\u7aef&#xff08;\u5982\u6a21\u62df\u7684\u5217\u8f66\u8fd0\u884c\u7ec8\u7aef&#xff09;\u7b5b\u9009\u548c\u663e\u793a\u5f53\u524d\u6709\u6548\u7684\u9650\u901f\u4fe1\u606f\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<ul>\n<li style=\"text-align:justify\">is_expired() \u65b9\u6cd5&#xff1a;<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">def is_expired(self):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 &#034;&#034;&#034;\u5224\u65ad\u5f53\u524dTSR\u662f\u5426\u5df2\u5931\u6548&#034;&#034;&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 now &#061; datetime.now()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 return self.status &#061;&#061; &#039;\u5df2\u4e0b\u8fbe&#039; and self.end_time and now &gt; self.end_time<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6b64\u65b9\u6cd5\u7528\u4e8e\u5224\u65ad\u9650\u901f\u547d\u4ee4\u662f\u5426\u5df2\u8fc7\u671f\u3002\u5b83\u4e3b\u8981\u88ab TSRManager \u4e2d\u7684\u5468\u671f\u6027\u68c0\u67e5\u673a\u5236\u8c03\u7528&#xff0c;\u4ee5\u5c06\u8fc7\u671f\u7684\u201c\u5df2\u4e0b\u8fbe\u201d\u72b6\u6001\u7684\u9650\u901f\u547d\u4ee4\u81ea\u52a8\u66f4\u65b0\u4e3a\u201c\u5df2\u5931\u6548\u201d\u72b6\u6001&#xff0c;\u5bf9\u5e94\u89c4\u8303 5.5.1.4 \u201cTSRS\u7cfb\u7edf\u81ea\u52a8\u5bf9\u9650\u901f\u547d\u4ee4\u7684\u5931\u6548\u65f6\u95f4\u8fdb\u884c\u5224\u5b9a\u201d\u548c 5.5.1.5 \u201c\u89c4\u5b9a\u4e86\u8fc7\u671f\u9650\u901f\u547d\u4ee4\u7684\u5904\u7406\u201d\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.2. TSRS\u7ba1\u7406\u6a21\u5757\u529f\u80fd\u5b9e\u73b0<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSRManager \u7c7b\u662f\u6574\u4e2a\u670d\u52a1\u7aef\u7684\u6838\u5fc3\u4e1a\u52a1\u903b\u8f91\u5c42&#xff0c;\u8d1f\u8d23\u7ef4\u62a4\u6240\u6709 TSR \u5bf9\u8c61\u7684\u96c6\u5408&#xff0c;\u5e76\u63d0\u4f9b\u5bf9\u8fd9\u4e9b\u5bf9\u8c61\u7684\u521b\u5efa\u3001\u4fee\u6539\u3001\u5220\u9664\u3001\u4e0b\u8fbe\u3001\u53d6\u6d88\u7b49\u64cd\u4f5c&#xff0c;\u540c\u65f6\u5b9e\u73b0\u5bf9\u64cd\u4f5c\u7684\u5408\u6cd5\u6027\u6821\u9a8c\u548c\u72b6\u6001\u7ba1\u7406\u3002\u5b83\u8fd8\u5305\u542b\u4e00\u4e2a\u5b9a\u65f6\u5668&#xff0c;\u7528\u4e8e\u5468\u671f\u6027\u5730\u68c0\u67e5\u9650\u901f\u547d\u4ee4\u7684\u72b6\u6001\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">class TSRManager(QObject):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 tsr_updated &#061; pyqtSignal() # \u5b9a\u4e49\u4fe1\u53f7&#xff0c;\u7528\u4e8e\u901a\u77e5GUI\u6216\u5176\u4ed6\u6a21\u5757\u6570\u636e\u5df2\u66f4\u65b0<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 def __init__(self):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 super().__init__()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.tsrs &#061; [] # \u5b58\u50a8TSR\u5bf9\u8c61\u7684\u5217\u8868<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._check_timer &#061; QTimer(self) # \u5b9a\u65f6\u5668&#xff0c;\u7528\u4e8e\u5468\u671f\u6027\u68c0\u67e5\u9650\u901f\u72b6\u6001<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._check_timer.timeout.connect(self._check_tsr_status)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._check_timer.start(5000) # \u6bcf5\u79d2\u68c0\u67e5\u4e00\u6b21&#xff0c;\u6a21\u62df\u89c4\u8303 5.5.1.4<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u6a21\u62df\u4e00\u4e9b\u521d\u59cb\u6570\u636e\u7528\u4e8e\u6f14\u793a<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.create_tsr(&#8230;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.create_tsr(&#8230;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5173\u952e\u8bbe\u8ba1&#xff1a;<\/p>\n<ul>\n<li style=\"text-align:justify\">tsrs \u5217\u8868&#xff1a; \u4f5c\u4e3a\u5185\u5b58\u4e2d\u7684\u6570\u636e\u5e93&#xff0c;\u5b58\u50a8\u6240\u6709 TSR \u5b9e\u4f8b\u3002<\/li>\n<li style=\"text-align:justify\">tsr_updated \u4fe1\u53f7&#xff1a; \u8fd9\u662f\u4e00\u4e2aPyQt\u4fe1\u53f7\u3002\u5f53 tsrs \u5217\u8868\u4e2d\u7684\u6570\u636e\u53d1\u751f\u4efb\u4f55\u53d8\u5316&#xff08;\u521b\u5efa\u3001\u4fee\u6539\u3001\u5220\u9664\u3001\u72b6\u6001\u6539\u53d8&#xff09;\u65f6&#xff0c;\u90fd\u4f1a\u53d1\u5c04\u6b64\u4fe1\u53f7\u3002\u670d\u52a1\u7aefGUI\u4f1a\u76d1\u542c\u6b64\u4fe1\u53f7&#xff0c;\u5e76\u8c03\u7528 refresh_list() \u65b9\u6cd5\u66f4\u65b0\u663e\u793a\u3002\u66f4\u91cd\u8981\u7684\u662f&#xff0c;\u670d\u52a1\u7aefTCP\/IP\u903b\u8f91\u4e5f\u4f1a\u76d1\u542c\u6b64\u4fe1\u53f7&#xff0c;\u4ece\u800c\u89e6\u53d1\u5411\u6240\u6709\u8fde\u63a5\u5ba2\u6237\u7aef\u7684\u9650\u901f\u6570\u636e\u5e7f\u64ad&#xff08;server_instance.broadcast_tsrs()&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">_check_timer \u5b9a\u65f6\u5668&#xff1a; \u5b9e\u73b0\u4e86\u89c4\u8303 5.5.1.4 \u4e2d\u201cTSRS\u7cfb\u7edf\u81ea\u52a8\u5bf9\u9650\u901f\u547d\u4ee4\u7684\u5931\u6548\u65f6\u95f4\u8fdb\u884c\u5224\u5b9a\u201d\u7684\u529f\u80fd\u3002\u5b83\u6bcf\u96945\u79d2\u8c03\u7528 _check_tsr_status \u65b9\u6cd5&#xff0c;\u68c0\u67e5\u6240\u6709\u201c\u5df2\u4e0b\u8fbe\u201d\u4e14\u5df2\u8fc7\u671f\u7684\u9650\u901f\u547d\u4ee4&#xff0c;\u5c06\u5176\u72b6\u6001\u81ea\u52a8\u66f4\u65b0\u4e3a\u201c\u5df2\u5931\u6548\u201d\u3002<\/li>\n<\/ul>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.2.1. \u9650\u901f\u8bbe\u7f6e\u89c4\u5219\u4e0e\u6821\u9a8c&#xff08;Create\/Update TSR&#xff09;<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSRManager \u4e2d\u7684 create_tsr() \u548c update_tsr() \u65b9\u6cd5\u8d1f\u8d23\u63a5\u6536\u65b0\u7684\u6216\u4fee\u6539\u540e\u7684\u9650\u901f\u547d\u4ee4\u6570\u636e&#xff0c;\u5e76\u8fdb\u884c\u4e25\u683c\u7684\u53c2\u6570\u6821\u9a8c&#xff0c;\u4ee5\u786e\u4fdd\u5176\u7b26\u5408\u300aTSRS\u6280\u672f\u89c4\u8303\u300b5.2\u8282\u7684\u5404\u9879\u89c4\u5219\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6821\u9a8c\u903b\u8f91\u7684\u6838\u5fc3\u5728\u4e8e\u8bc6\u522b\u7ebf\u8def\u7c7b\u578b&#xff08;\u6b63\u7ebf\u6216\u4fa7\u7ebf&#xff09;&#xff0c;\u7136\u540e\u5e94\u7528\u76f8\u5e94\u7684\u89c4\u5219\u3002\u4efb\u4f55\u4e0d\u7b26\u5408\u89c4\u5219\u7684\u8f93\u5165\u90fd\u4f1a\u5bfc\u81f4\u6821\u9a8c\u5931\u8d25&#xff0c;\u5e76\u8fd4\u56de\u9519\u8bef\u4fe1\u606f\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6821\u9a8c\u5b9e\u73b0\u7ec6\u8282&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">create_tsr(self, data, operator&#061;&#039;\u7ba1\u7406\u4e2d\u5fc3&#039;) \u548c update_tsr(self, tsr_id, data, operator&#061;&#039;\u7ba1\u7406\u4e2d\u5fc3&#039;) \u65b9\u6cd5\u4e2d\u90fd\u5305\u542b\u4e86\u7c7b\u4f3c\u7684\u6821\u9a8c\u903b\u8f91&#xff0c;\u5b83\u4eec\u8fd4\u56de\u4e00\u4e2a\u5143\u7ec4 (tsr_object, errors_list)\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors &#061; []<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # 5.2.1.1 \u4e34\u65f6\u9650\u901f\u547d\u4ee4\u5e94\u5305\u62ec\u8c03\u5ea6\u547d\u4ee4\u53f7\u3001\u7ebf\u8def\u53f7\u3001\u8d77\u59cb\u91cc\u7a0b\u6807\u3001\u7ec8\u70b9\u91cc\u7a0b\u6807\u3001\u9650\u901f\u503c\u3001\u8ba1\u5212\u6267\u884c\u5f00\u59cb\u65f6\u95f4\u3001\u8ba1\u5212\u6267\u884c\u7ed3\u675f\u65f6\u95f4\u7b49\u4fe1\u606f\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # 5.2.1.2 \u6700\u4f4e\u9650\u901f\u503c45km\/h&#xff0c;\u6700\u957f\u9650\u901f\u533a\u957f\u5ea6\u4e3aTSRS\u5bf9\u5e94\u7684\u8c03\u5ea6\u53f0\u7ba1\u754c\u8303\u56f4\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # 5.2.1.3 \u4fa7\u7ebf\u4e34\u65f6\u9650\u901f\u503c\u8bbe45km\/h\u300180km\/h\u4e24\u6863\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # 5.2.1.6 \u4e34\u65f6\u9650\u901f\u547d\u4ee4\u7684\u8d77\u3001\u7ec8\u70b9\u4f4d\u7f6e\u5e94\u6309\u7ebf\u8def\u6b63\u5411\u8fd0\u884c\u65b9\u5411\u8bbe\u7f6e\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # 5.2.1.7 \u4e34\u65f6\u9650\u901f\u547d\u4ee4\u7684\u8d77\u70b9\u4e0e\u7ec8\u70b9\u5747\u4e0d\u5f97\u8bbe\u7f6e\u5728\u7ebf\u8def\u77ed\u94fe\u70b9\u5185\u3002(\u6b64\u5904\u7b80\u5316&#xff0c;\u4ec5\u6821\u9a8c\u975e\u7a7a)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # 1. \u57fa\u7840\u4fe1\u606f\u975e\u7a7a\u6821\u9a8c<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if not data.get(&#039;dispatch_command_no&#039;):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(&#034;\u5fc5\u987b\u586b\u5199\u8c03\u5ea6\u547d\u4ee4\u53f7&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if not data.get(&#039;line&#039;):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(&#034;\u5fc5\u987b\u586b\u5199\u7ebf\u8def&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if not data.get(&#039;track&#039;):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(&#034;\u5fc5\u987b\u586b\u5199\u80a1\u9053&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if not data.get(&#039;start_time&#039;):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(&#034;\u5fc5\u987b\u586b\u5199\u751f\u6548\u65f6\u95f4&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if not data.get(&#039;end_time&#039;):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(&#034;\u5fc5\u987b\u586b\u5199\u5931\u6548\u65f6\u95f4&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 line_type &#061; data.get(&#039;line_type&#039;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 speed_limit &#061; int(data.get(&#039;speed_limit&#039;, 0)) # \u7edf\u4e00\u8f6c\u6362\u4e3a\u6574\u6570\u8fdb\u884c\u6bd4\u8f83<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.2.1.1. \u6b63\u7ebf\u9650\u901f\u8bbe\u7f6e\u6821\u9a8c<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u9488\u5bf9 line_type &#061;&#061; &#039;\u6b63\u7ebf&#039; \u7684\u60c5\u51b5&#xff0c;\u6821\u9a8c\u903b\u8f91\u5982\u4e0b&#xff1a;<\/p>\n<ul>\n<li style=\"text-align:justify\">\u91cc\u7a0b\u6807\u4e0e\u95ed\u585e\u5206\u533a\u975e\u7a7a&#xff1a; \u89c4\u8303 5.2.1.1 \u8981\u6c42\u6b63\u7ebf\u9650\u901f\u547d\u4ee4\u5305\u542b\u8d77\u59cb\u91cc\u7a0b\u6807\u3001\u7ec8\u70b9\u91cc\u7a0b\u6807\u3001\u8d77\u59cb\u6b63\u5411\u95ed\u585e\u5206\u533a\u53f7\u3001\u7ec8\u70b9\u6b63\u5411\u95ed\u585e\u5206\u533a\u53f7\u3002\u56e0\u6b64&#xff0c;\u8fd9\u4e9b\u5b57\u6bb5\u5fc5\u987b\u586b\u5199\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if not data.get(&#039;start_location&#039;):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(&#034;\u6b63\u7ebf\u5fc5\u987b\u586b\u5199\u8d77\u59cb\u91cc\u7a0b\u6807&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if not data.get(&#039;end_location&#039;):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(&#034;\u6b63\u7ebf\u5fc5\u987b\u586b\u5199\u7ec8\u70b9\u91cc\u7a0b\u6807&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if not data.get(&#039;start_block_section&#039;):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(&#034;\u6b63\u7ebf\u5fc5\u987b\u586b\u5199\u8d77\u59cb\u95ed\u585e\u5206\u533a\u53f7&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if not data.get(&#039;end_block_section&#039;):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(&#034;\u6b63\u7ebf\u5fc5\u987b\u586b\u5199\u7ec8\u70b9\u95ed\u585e\u5206\u533a\u53f7&#034;)<\/p>\n<ul>\n<li style=\"text-align:justify\">\u9650\u901f\u503c\u6863\u4f4d\u4e0e\u8303\u56f4&#xff1a; \u89c4\u8303 5.2.1.2 \u89c4\u5b9a\u6b63\u7ebf\u9650\u901f\u503c\u6309\u516b\u6863&#xff08;45\u300160\u300180\u3001100\u3001120\u3001160\u3001200\u3001250km\/h&#xff09;\u8bbe\u7f6e&#xff0c;\u6700\u4f4e\u9650\u901f\u503c45km\/h\u3002\u4ee3\u7801\u4e2d\u867d\u7136\u63a8\u8350\u8fd9\u4e9b\u6863\u4f4d&#xff0c;\u4f46\u5141\u8bb8\u7528\u6237\u8f93\u5165\u8fd9\u4e9b\u8303\u56f4\u5185\u7684\u4efb\u610f\u503c&#xff0c;\u5e76\u8fdb\u884c\u63d0\u793a&#xff0c;\u4f46\u5982\u679c\u8d85\u51fa\u6700\u4f4e\u6216\u6700\u9ad8\u9650\u5236&#xff0c;\u5219\u76f4\u63a5\u62a5\u9519\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 valid_speeds_main_line &#061; [45, 60, 80, 100, 120, 160, 200, 250]<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if speed_limit not in valid_speeds_main_line:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if speed_limit &lt; 45 or speed_limit &gt; 250:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 f&#034;\u6b63\u7ebf\u9650\u901f\u503c\u5fc5\u987b\u5728 {min(valid_speeds_main_line)} \u5230 {max(valid_speeds_main_line)} \u4e4b\u95f4\u3002&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 elif speed_limit not in valid_speeds_main_line:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(f&#034;\u6b63\u7ebf\u9650\u901f\u503c\u63a8\u8350\u4e3a {&#039;,&#039;.join(map(str, valid_speeds_main_line))} \u4e2d\u7684\u4e00\u6863\u3002&#034;)<\/p>\n<ul>\n<li style=\"text-align:justify\">\u91cc\u7a0b\u6807\u987a\u5e8f&#xff1a; \u89c4\u8303 5.2.1.6 \u89c4\u5b9a\u4e34\u65f6\u9650\u901f\u547d\u4ee4\u7684\u8d77\u3001\u7ec8\u70b9\u4f4d\u7f6e\u5e94\u6309\u7ebf\u8def\u6b63\u5411\u8fd0\u884c\u65b9\u5411\u8bbe\u7f6e\u3002\u867d\u7136\u672a\u8fdb\u884c\u590d\u6742\u7684\u91cc\u7a0b\u6807\u89e3\u6790\u548c\u6bd4\u8f83&#xff0c;\u4f46\u81f3\u5c11\u4fdd\u8bc1\u8d77\u7ec8\u70b9\u91cc\u7a0b\u6807\u4e0d\u80fd\u76f8\u540c&#xff08;\u7b80\u5316\u5904\u7406&#xff09;\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if data.get(&#039;start_location&#039;) &#061;&#061; data.get(&#039;end_location&#039;) and data.get(&#039;start_location&#039;) !&#061; &#039;&#039;:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(&#034;\u8d77\u59cb\u91cc\u7a0b\u6807\u548c\u7ec8\u70b9\u91cc\u7a0b\u6807\u4e0d\u80fd\u76f8\u540c\u3002&#034;)<\/p>\n<ul>\n<li style=\"text-align:justify\">\u77ed\u94fe\u70b9&#xff08;\u7b80\u5316&#xff09;&#xff1a; \u89c4\u8303 5.2.1.7 \u89c4\u5b9a\u8d77\u70b9\u4e0e\u7ec8\u70b9\u5747\u4e0d\u5f97\u8bbe\u7f6e\u5728\u7ebf\u8def\u77ed\u94fe\u70b9\u5185\u3002\u6b64\u5904\u4ec5\u901a\u8fc7\u975e\u7a7a\u6821\u9a8c\u95f4\u63a5\u6a21\u62df&#xff0c;\u672a\u8fdb\u884c\u5b9e\u9645\u77ed\u94fe\u70b9\u68c0\u6d4b\u3002<\/li>\n<\/ul>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.2.1.2. \u4fa7\u7ebf\u9650\u901f\u8bbe\u7f6e\u6821\u9a8c<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u9488\u5bf9 line_type &#061;&#061; &#039;\u4fa7\u7ebf&#039; \u7684\u60c5\u51b5&#xff0c;\u6821\u9a8c\u903b\u8f91\u5982\u4e0b&#xff1a;<\/p>\n<ul>\n<li style=\"text-align:justify\">\u8f66\u7ad9\u7f16\u53f7\u5fc5\u586b&#xff1a; \u89c4\u8303 5.2.1.1 \u89c4\u5b9a\u4fa7\u7ebf\u4e34\u65f6\u9650\u901f\u547d\u4ee4\u5e94\u589e\u52a0\u8f66\u7ad9\u7f16\u53f7\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if not data.get(&#039;station_no&#039;):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(&#034;\u4fa7\u7ebf\u5fc5\u987b\u586b\u5199\u8f66\u7ad9\u7f16\u53f7&#034;)<\/p>\n<ul>\n<li style=\"text-align:justify\">\u91cc\u7a0b\u6807\u56fa\u5b9a\u503c&#xff1a; \u89c4\u8303 5.2.1.1 \u89c4\u5b9a\u4fa7\u7ebf\u8d77\u70b9\u4e0e\u7ec8\u70b9\u91cc\u7a0b\u6807\u56fa\u5b9a\u4e3a K0000&#043;000 \u548c K9999&#043;999\u3002\u4ee3\u7801\u4e2d\u5f3a\u5236\u6821\u9a8c\u8fd9\u4e24\u4e2a\u503c\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if data.get(&#039;start_location&#039;) !&#061; &#039;K0000&#043;000&#039; or data.get(&#039;end_location&#039;) !&#061; &#039;K9999&#043;999&#039;:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(&#034;\u4fa7\u7ebf\u8d77\u59cb\u91cc\u7a0b\u6807\u548c\u7ec8\u70b9\u91cc\u7a0b\u6807\u5fc5\u987b\u56fa\u5b9a\u4e3a&#039;K0000&#043;000&#039;\u548c&#039;K9999&#043;999&#039;\u3002&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e3a\u4e86\u7528\u6237\u4f53\u9a8c&#xff0c;TSRDetailDialog \u5728\u9009\u62e9\u201c\u4fa7\u7ebf\u201d\u65f6&#xff0c;\u4f1a\u81ea\u52a8\u5c06\u8fd9\u4e24\u4e2a\u91cc\u7a0b\u6807\u586b\u5165\u5e76\u8bbe\u7f6e\u4e3a\u53ea\u8bfb&#xff0c;\u51cf\u5c11\u7528\u6237\u8f93\u5165\u9519\u8bef\u3002<\/p>\n<ul>\n<li style=\"text-align:justify\">\u9650\u901f\u503c\u6863\u4f4d&#xff1a; \u89c4\u8303 5.2.1.3 \u89c4\u5b9a\u4fa7\u7ebf\u4e34\u65f6\u9650\u901f\u503c\u8bbe45km\/h\u300180km\/h\u4e24\u6863\u3002\u4ee3\u7801\u4e2d\u5f3a\u5236\u6821\u9a8c\u53ea\u80fd\u662f\u8fd9\u4e24\u4e2a\u503c\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 valid_speeds_side_line &#061; [45, 80]<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if speed_limit not in valid_speeds_side_line:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(f&#034;\u4fa7\u7ebf\u9650\u901f\u503c\u5fc5\u987b\u4e3a {&#039;,&#039;.join(map(str, valid_speeds_side_line))} \u4e2d\u7684\u4e00\u6863\u3002&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u540c\u6837&#xff0c;TSRDetailDialog \u5728\u9009\u62e9\u201c\u4fa7\u7ebf\u201d\u65f6&#xff0c;\u4f1a\u9650\u5236\u9650\u901f\u503c\u7684\u53ef\u9009\u8303\u56f4\u3002<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.2.1.3. \u65f6\u95f4\u6821\u9a8c<\/span><\/h4>\n<ul>\n<li style=\"text-align:justify\">\u751f\u6548\u65f6\u95f4\u65e9\u4e8e\u5931\u6548\u65f6\u95f4&#xff1a; \u65e0\u8bba\u662f\u6b63\u7ebf\u8fd8\u662f\u4fa7\u7ebf\u9650\u901f&#xff0c;\u8ba1\u5212\u6267\u884c\u5f00\u59cb\u65f6\u95f4\u90fd\u5fc5\u987b\u65e9\u4e8e\u8ba1\u5212\u6267\u884c\u7ed3\u675f\u65f6\u95f4\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 if data.get(&#039;start_time&#039;) and data.get(&#039;end_time&#039;) and data[&#039;start_time&#039;] &gt;&#061; data[&#039;end_time&#039;]:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 errors.append(&#034;\u751f\u6548\u65f6\u95f4\u5fc5\u987b\u65e9\u4e8e\u5931\u6548\u65f6\u95f4&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6240\u6709\u6821\u9a8c\u5b8c\u6210\u540e&#xff0c;\u5982\u679c errors \u5217\u8868\u975e\u7a7a&#xff0c;\u5219\u8fd4\u56de (None, errors)&#xff0c;\u8868\u793a\u521b\u5efa\u6216\u66f4\u65b0\u5931\u8d25&#xff1b;\u5426\u5219&#xff0c;\u521b\u5efa\/\u66f4\u65b0 TSR \u5bf9\u8c61&#xff0c;\u6dfb\u52a0\u5230\u5217\u8868\u4e2d&#xff0c;\u5e76\u8fd4\u56de (tsr, [])\u3002<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.2.2. \u9650\u901f\u547d\u4ee4\u64cd\u4f5c\u8981\u6c42&#xff08;Issue\/Cancel\/Delete TSR&#xff09;<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSRManager \u5b9e\u73b0\u4e86\u5bf9\u9650\u901f\u547d\u4ee4\u751f\u547d\u5468\u671f\u4e2d\u7684\u5173\u952e\u64cd\u4f5c&#xff0c;\u5e76\u4e25\u683c\u9075\u5faa\u89c4\u8303\u4e2d\u5bf9\u64cd\u4f5c\u72b6\u6001\u7684\u9650\u5236\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3.2.2.1. \u5220\u9664\u9650\u901f\u547d\u4ee4<\/p>\n<ul>\n<li style=\"text-align:justify\">delete_tsr(self, tsr_id, operator&#061;&#039;\u7ba1\u7406\u4e2d\u5fc3&#039;)&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u89c4\u8303 5.3.1.3&#xff1a; \u201cTSRS\u53ea\u5141\u8bb8\u5220\u9664\u672a\u6267\u884c\u7684\u9650\u901f\u547d\u4ee4\u3002\u201d<\/li>\n<li style=\"text-align:justify\">\u5b9e\u73b0&#xff1a; \u4ee3\u7801\u4e2d\u5c06\u201c\u672a\u6267\u884c\u201d\u6269\u5c55\u4e3a &#039;\u62df\u5b9a&#039;\u3001&#039;\u5df2\u53d6\u6d88&#039; \u548c &#039;\u5df2\u5931\u6548&#039;\u3002\u56e0\u4e3a\u5df2\u53d6\u6d88\u7684\u9650\u901f\u4e0d\u518d\u5bf9\u5217\u8f66\u4ea7\u751f\u4f5c\u7528&#xff0c;\u5df2\u5931\u6548\u7684\u9650\u901f\u4e5f\u5df2\u81ea\u52a8\u8fc7\u671f\u4e0d\u518d\u6267\u884c\u3002\u8fd9\u4e9b\u72b6\u6001\u4e0b\u7684\u9650\u901f\u547d\u4ee4\u901a\u5e38\u662f\u9700\u8981\u88ab\u6e05\u7406\u7684\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 for i, tsr in enumerate(self.tsrs):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if tsr.id &#061;&#061; tsr_id:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if tsr.status not in [&#039;\u62df\u5b9a&#039;, &#039;\u5df2\u53d6\u6d88&#039;, &#039;\u5df2\u5931\u6548&#039;]:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return False, &#034;\u53ea\u6709&#039;\u62df\u5b9a&#039;\u3001&#039;\u5df2\u53d6\u6d88&#039;\u6216&#039;\u5df2\u5931\u6548&#039;\u72b6\u6001\u7684\u9650\u901f\u53ef\u4ee5\u5220\u9664&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 del self.tsrs[i]<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._notify_update()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return True, &#034;\u5220\u9664\u6210\u529f&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 return False, &#034;\u672a\u627e\u5230\u6307\u5b9a\u9650\u901f&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5220\u9664\u6210\u529f\u540e&#xff0c;\u4f1a\u901a\u77e5\u6570\u636e\u66f4\u65b0&#xff0c;\u4ece\u800c\u89e6\u53d1\u5ba2\u6237\u7aef\u7684\u9650\u901f\u5217\u8868\u5237\u65b0\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3.2.2.2. \u9a8c\u8bc1\u4e0e\u4e0b\u8fbe\u9650\u901f\u547d\u4ee4<\/p>\n<ul>\n<li style=\"text-align:justify\">issue_tsr(self, tsr_id, operator&#061;&#039;\u7ba1\u7406\u4e2d\u5fc3&#039;)&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u89c4\u8303 5.3.1.4&#xff1a; \u201cTSRS\u53ea\u5141\u8bb8\u5bf9\u672a\u6267\u884c\u7684\u9650\u901f\u547d\u4ee4\u9a8c\u8bc1\u3002\u201d&#xff08;\u4ee3\u7801\u4e2d\u7b80\u5316\u4e3a\u7f16\u8f91\u5b8c\u6210\u540e\u76f4\u63a5\u4e0b\u8fbe&#xff0c;\u9690\u542b\u4e86\u9a8c\u8bc1\u901a\u8fc7&#xff09;<\/li>\n<li style=\"text-align:justify\">\u89c4\u8303 5.3.1.5&#xff1a; \u201cTSRS\u53ea\u5141\u8bb8\u5bf9\u9a8c\u8bc1\u901a\u8fc7\u7684\u9650\u901f\u547d\u4ee4\u4e0b\u8fbe\u6267\u884c\u3002\u201d<\/li>\n<li style=\"text-align:justify\">\u5b9e\u73b0&#xff1a; \u53ea\u6709\u72b6\u6001\u4e3a &#039;\u62df\u5b9a&#039; \u7684\u9650\u901f\u547d\u4ee4\u53ef\u4ee5\u88ab\u4e0b\u8fbe\u3002\u4e00\u65e6\u4e0b\u8fbe&#xff0c;\u5176\u72b6\u6001\u53d8\u4e3a &#039;\u5df2\u4e0b\u8fbe&#039;\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 for tsr in self.tsrs:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if tsr.id &#061;&#061; tsr_id:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if tsr.status &#061;&#061; &#039;\u62df\u5b9a&#039;:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 tsr.status &#061; &#039;\u5df2\u4e0b\u8fbe&#039;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 tsr.operator &#061; operator<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._notify_update()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return True, &#034;\u4e0b\u8fbe\u6210\u529f&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return False, &#034;\u53ea\u80fd\u4e0b\u8fbe&#039;\u62df\u5b9a&#039;\u72b6\u6001\u7684\u9650\u901f&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 return False, &#034;\u672a\u627e\u5230\u6307\u5b9a\u9650\u901f&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8fd9\u6a21\u62df\u4e86\u8c03\u5ea6\u5458\u5bf9\u9650\u901f\u547d\u4ee4\u7684\u6700\u7ec8\u786e\u8ba4&#xff0c;\u5e76\u4f7f\u5176\u751f\u6548\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3.2.2.3. \u53d6\u6d88\u9650\u901f\u547d\u4ee4<\/p>\n<ul>\n<li style=\"text-align:justify\">cancel_tsr(self, tsr_id, operator&#061;&#039;\u7ba1\u7406\u4e2d\u5fc3&#039;)&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u89c4\u8303 5.3.1.7&#xff1a; \u201cTSRS\u53ea\u63a5\u53d7\u5df2\u5904\u4e8e\u6267\u884c\u72b6\u6001\u7684\u9650\u901f\u8bbe\u7f6e\u547d\u4ee4\u7684\u53d6\u6d88\u547d\u4ee4\u7684\u9a8c\u8bc1\u6216\u6267\u884c\u64cd\u4f5c\u3002\u201d<\/li>\n<li style=\"text-align:justify\">\u5b9e\u73b0&#xff1a; \u53ea\u6709\u72b6\u6001\u4e3a &#039;\u5df2\u4e0b\u8fbe&#039; (\u5373\u6b63\u5728\u6267\u884c\u7684) \u7684\u9650\u901f\u547d\u4ee4\u53ef\u4ee5\u88ab\u53d6\u6d88\u3002\u53d6\u6d88\u540e&#xff0c;\u5176\u72b6\u6001\u53d8\u4e3a &#039;\u5df2\u53d6\u6d88&#039;\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 for tsr in self.tsrs:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if tsr.id &#061;&#061; tsr_id:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if tsr.status &#061;&#061; &#039;\u5df2\u4e0b\u8fbe&#039;:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 tsr.status &#061; &#039;\u5df2\u53d6\u6d88&#039;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 tsr.operator &#061; operator<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._notify_update()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return True, &#034;\u53d6\u6d88\u6210\u529f&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return False, &#034;\u53ea\u80fd\u53d6\u6d88&#039;\u5df2\u4e0b\u8fbe&#039;\u72b6\u6001\u7684\u9650\u901f&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 return False, &#034;\u672a\u627e\u5230\u6307\u5b9a\u9650\u901f&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8fd9\u4e2a\u64cd\u4f5c\u6a21\u62df\u4e86\u8c03\u5ea6\u5458\u63d0\u524d\u7ec8\u6b62\u9650\u901f\u751f\u6548\u3002<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.2.3. \u9650\u901f\u547d\u4ee4\u72b6\u6001\u5468\u671f\u6027\u5224\u5b9a<\/span><\/h4>\n<ul>\n<li style=\"text-align:justify\">_check_tsr_status(self) \u65b9\u6cd5&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u89c4\u8303 5.5.1.4&#xff1a; \u201cTSRS\u7cfb\u7edf\u81ea\u52a8\u5bf9\u9650\u901f\u547d\u4ee4\u7684\u5931\u6548\u65f6\u95f4\u8fdb\u884c\u5224\u5b9a\u3002\u201d<\/li>\n<li style=\"text-align:justify\">\u89c4\u8303 5.5.1.5&#xff1a; \u201c\u89c4\u5b9a\u4e86\u8fc7\u671f\u9650\u901f\u547d\u4ee4\u7684\u5904\u7406\u3002\u201d<\/li>\n<li style=\"text-align:justify\">\u5b9e\u73b0&#xff1a; \u8fd9\u4e2a\u79c1\u6709\u65b9\u6cd5\u7531 _check_timer \u5b9a\u65f6\u5668\u5468\u671f\u6027&#xff08;\u6bcf5\u79d2&#xff09;\u8c03\u7528\u3002\u5b83\u904d\u5386\u6240\u6709\u9650\u901f\u547d\u4ee4&#xff0c;\u5982\u679c\u53d1\u73b0\u4e00\u4e2a\u72b6\u6001\u4e3a &#039;\u5df2\u4e0b\u8fbe&#039; \u7684\u547d\u4ee4&#xff0c;\u4e14\u5176 end_time \u5df2\u7ecf\u65e9\u4e8e\u5f53\u524d\u65f6\u95f4&#xff0c;\u90a3\u4e48\u5c31\u5c06\u5176\u72b6\u6001\u81ea\u52a8\u66f4\u65b0\u4e3a &#039;\u5df2\u5931\u6548&#039;\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">def _check_tsr_status(self):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 updated_any &#061; False<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 for tsr in self.tsrs:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if tsr.status &#061;&#061; &#039;\u5df2\u4e0b\u8fbe&#039; and tsr.end_time and datetime.now() &gt; tsr.end_time:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if tsr.status !&#061; &#039;\u5df2\u5931\u6548&#039;: # \u907f\u514d\u91cd\u590d\u8bbe\u7f6e<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 tsr.status &#061; &#039;\u5df2\u5931\u6548&#039;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 tsr.operator &#061; &#039;\u7cfb\u7edf\u81ea\u52a8&#039;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 logging.info(f&#034;TSR {tsr.id[:8]}&#8230; \u72b6\u6001\u53d8\u4e3a &#039;\u5df2\u5931\u6548&#039; (\u8d85\u8fc7\u5931\u6548\u65f6\u95f4).&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 updated_any &#061; True<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 if updated_any:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._notify_update()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8fd9\u79cd\u81ea\u52a8\u72b6\u6001\u66f4\u65b0\u673a\u5236\u662fTSRS\u7ef4\u62a4\u9650\u901f\u4fe1\u606f\u51c6\u786e\u6027\u548c\u65f6\u6548\u6027\u7684\u91cd\u8981\u529f\u80fd\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.3. TSRS\u670d\u52a1\u7aef\u901a\u4fe1\u673a\u5236<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSRServer \u7c7b\u8d1f\u8d23\u5b9e\u73b0\u670d\u52a1\u7aef\u7684\u6838\u5fc3\u901a\u4fe1\u903b\u8f91&#xff0c;\u5305\u62ec\u63a5\u53d7\u5ba2\u6237\u7aef\u8fde\u63a5\u3001\u6536\u53d1\u6d88\u606f\u3001\u4ee5\u53ca\u5411\u6240\u6709\u8fde\u63a5\u7684\u5ba2\u6237\u7aef\u5e7f\u64ad\u9650\u901f\u4fe1\u606f\u3002<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.3.1. TCP\/IP\u901a\u4fe1\u534f\u8bae\u8bbe\u8ba1<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u672c\u7cfb\u7edf\u91c7\u7528\u57fa\u4e8eTCP\/IP\u7684Socket\u901a\u4fe1&#xff0c;\u5e76\u8bbe\u8ba1\u4e86\u7b80\u5355\u7684\u5e94\u7528\u5c42\u534f\u8bae\u6765\u5c01\u88c5\u6570\u636e\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3.3.1.1. \u6d88\u606f\u683c\u5f0f&#xff1a;\u957f\u5ea6\u524d\u7f00\u4e0eJSON\u5c01\u88c5<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e3a\u4e86\u786e\u4fdd\u6d88\u606f\u7684\u5b8c\u6574\u63a5\u6536&#xff0c;\u9632\u6b62\u201c\u7c98\u5305\u201d\u6216\u201c\u5206\u5305\u201d\u95ee\u9898&#xff0c;\u672c\u7cfb\u7edf\u91c7\u7528\u4e86\u957f\u5ea6\u524d\u7f00\u7684\u65b9\u5f0f\u6765\u6807\u8bc6\u6bcf\u6761\u6d88\u606f\u7684\u957f\u5ea6\u3002\u540c\u65f6&#xff0c;\u4e3a\u4e86\u4fbf\u4e8e\u6570\u636e\u7684\u7ed3\u6784\u5316\u548c\u89e3\u6790&#xff0c;\u6d88\u606f\u5185\u5bb9\u91c7\u7528JSON\u683c\u5f0f\u5c01\u88c5\u3002<\/p>\n<ul>\n<li style=\"text-align:justify\">\u957f\u5ea6\u524d\u7f00&#xff1a; \u5728\u6bcf\u4e2aJSON\u6d88\u606f\u524d&#xff0c;\u4f1a\u52a0\u4e0a\u4e00\u4e2a4\u5b57\u8282\u7684\u65e0\u7b26\u53f7\u6574\u6570&#xff08;\u5927\u7aef\u5b57\u8282\u5e8f&#xff0c;&gt;I&#xff09;&#xff0c;\u8868\u793a\u540e\u7eedJSON\u6570\u636e\u7684\u603b\u5b57\u8282\u6570\u3002\n<ul>\n<li style=\"text-align:justify\">\u53d1\u9001\u65f6&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">json_message &#061; json.dumps(message_dict).encode(&#039;utf-8&#039;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">message_length &#061; len(json_message)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">length_prefix &#061; message_length.to_bytes(4, &#039;big&#039;) # 4\u5b57\u8282\u5927\u7aef\u5b57\u8282\u5e8f<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">client_sock.sendall(length_prefix &#043; json_message)<\/p>\n<ul>\n<li>\n<ul>\n<li style=\"text-align:justify\">\u63a5\u6536\u65f6&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"># \u8bfb\u53d6\u957f\u5ea6\u524d\u7f00<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">length_bytes &#061; b&#039;&#039;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">while len(length_bytes) &lt; header_len: # header_len &#061; 4<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 chunk &#061; sock.recv(header_len &#8211; len(length_bytes))<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 if not chunk: return b&#039;&#039; # \u8fde\u63a5\u65ad\u5f00<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 length_bytes &#043;&#061; chunk<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">message_length &#061; struct.unpack(&#039;&gt;I&#039;, length_bytes)[0]<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"># \u8bfb\u53d6\u6d88\u606f\u4f53<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">message_bytes &#061; b&#039;&#039;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">while len(message_bytes) &lt; message_length:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 bytes_to_read &#061; message_length &#8211; len(message_bytes)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 chunk &#061; sock.recv(min(4096, bytes_to_read))<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 if not chunk: return b&#039;&#039; # \u8fde\u63a5\u65ad\u5f00<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 message_bytes &#043;&#061; chunk<\/p>\n<ul>\n<li style=\"text-align:justify\">\u8fd9\u79cd\u673a\u5236\u4fdd\u8bc1\u4e86\u63a5\u6536\u7aef\u80fd\u591f\u51c6\u786e\u77e5\u9053\u4e00\u6761\u6d88\u606f\u7684\u8fb9\u754c&#xff0c;\u4ece\u800c\u6b63\u786e\u5730\u8bfb\u53d6\u5b8c\u6574\u7684JSON\u6570\u636e\u3002<\/li>\n<li style=\"text-align:justify\">JSON\u5c01\u88c5&#xff1a; \u6d88\u606f\u4f53\u5185\u90e8\u662fJSON\u683c\u5f0f\u7684\u5b57\u5178&#xff0c;\u5305\u542b type \u5b57\u6bb5&#xff08;\u6307\u793a\u6d88\u606f\u7c7b\u578b&#xff09;\u548c payload \u6216 data \u5b57\u6bb5&#xff08;\u5305\u542b\u5b9e\u9645\u4e1a\u52a1\u6570\u636e&#xff09;\u3002\n<ul>\n<li style=\"text-align:justify\">\u5ba2\u6237\u7aef\u53d1\u9001\u7684\u547d\u4ee4\u793a\u4f8b&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">json\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">{&#034;type&#034;: &#034;CREATE_TSR&#034;, &#034;payload&#034;: {&#034;dispatch_command_no&#034;: &#034;&#8230;&#034;, &#034;speed_limit&#034;: 80, &#8230;}}<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">{&#034;type&#034;: &#034;ISSUE_TSR&#034;, &#034;payload&#034;: {&#034;id&#034;: &#034;&#8230;&#034;}}<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">{&#034;type&#034;: &#034;GET_ALL_TSRS&#034;}<\/p>\n<ul>\n<li>\n<ul>\n<li style=\"text-align:justify\">\u670d\u52a1\u7aef\u53d1\u9001\u7684\u54cd\u5e94\/\u66f4\u65b0\u793a\u4f8b&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">json\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">{&#034;type&#034;: &#034;response&#034;, &#034;status&#034;: &#034;success&#034;, &#034;message&#034;: &#034;TSR\u521b\u5efa\u6210\u529f&#034;, &#034;data&#034;: {&#8230;}}<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">{&#034;type&#034;: &#034;TSRS_UPDATE&#034;, &#034;data&#034;: [{TSR_dict1}, {TSR_dict2}, &#8230;]}<\/p>\n<ul>\n<li style=\"text-align:justify\">JSON\u7684\u4f18\u52bf\u5728\u4e8e\u5176\u8de8\u8bed\u8a00\u517c\u5bb9\u6027\u3001\u53ef\u8bfb\u6027\u4ee5\u53ca\u5bf9\u590d\u6742\u6570\u636e\u7ed3\u6784&#xff08;\u5982\u5217\u8868\u3001\u5d4c\u5957\u5b57\u5178&#xff09;\u7684\u826f\u597d\u652f\u6301\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3.3.1.2. \u670d\u52a1\u7aef\u7ebf\u7a0b\u6a21\u578b<\/p>\n<ul>\n<li style=\"text-align:justify\">\u4e3b\u7ebf\u7a0b\u4e0eAccept\u7ebf\u7a0b&#xff1a; TSRServer.start() \u65b9\u6cd5\u5728\u72ec\u7acb\u7684\u7ebf\u7a0b&#xff08;accept_thread&#xff09;\u4e2d\u8fd0\u884c _accept_clients() \u65b9\u6cd5\u3002\u8fd9\u4f7f\u5f97GUI\u4e3b\u7ebf\u7a0b\u4e0d\u4f1a\u88abSocket\u7684 accept() \u8c03\u7528\u963b\u585e&#xff0c;\u4fdd\u6301\u754c\u9762\u7684\u54cd\u5e94\u6027\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">accept_thread &#061; threading.Thread(target&#061;self._accept_clients)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">accept_thread.daemon &#061; True # \u8bbe\u7f6e\u4e3a\u5b88\u62a4\u7ebf\u7a0b&#xff0c;\u4e3b\u7a0b\u5e8f\u9000\u51fa\u65f6\u81ea\u52a8\u7ec8\u6b62<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">accept_thread.start()<\/p>\n<ul>\n<li style=\"text-align:justify\">\u591a\u5ba2\u6237\u7aef\u5904\u7406&#xff1a; _accept_clients() \u5faa\u73af\u76d1\u542c\u65b0\u7684\u5ba2\u6237\u7aef\u8fde\u63a5\u3002\u6bcf\u5f53\u6709\u65b0\u7684\u5ba2\u6237\u7aef\u8fde\u63a5\u65f6&#xff0c;\u90fd\u4f1a\u4e3a\u5176\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u72ec\u7acb\u7ebf\u7a0b&#xff08;client_thread&#xff09;\u6765\u5904\u7406\u8be5\u5ba2\u6237\u7aef\u7684\u901a\u4fe1\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 client_socket, addr &#061; self.server_socket.accept()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # &#8230;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 client_thread &#061; threading.Thread(<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 target&#061;self._handle_client,<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 args&#061;(client_socket, addr_str)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 )<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 client_thread.daemon &#061; True<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 client_thread.start()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8fd9\u79cd\u201c\u6bcf\u5ba2\u6237\u7aef\u4e00\u7ebf\u7a0b\u201d\u7684\u6a21\u578b\u7b80\u5355\u76f4\u89c2&#xff0c;\u80fd\u591f\u5e76\u53d1\u5904\u7406\u591a\u4e2a\u5ba2\u6237\u7aef\u8bf7\u6c42&#xff0c;\u4e92\u4e0d\u5f71\u54cd\u3002_handle_client() \u51fd\u6570\u5185\u90e8\u5305\u542b\u4e86\u5faa\u73af\u63a5\u6536\u548c\u5904\u7406\u8be5\u5ba2\u6237\u7aef\u6d88\u606f\u7684\u903b\u8f91\u3002<\/p>\n<ul>\n<li style=\"text-align:justify\">\u7ebf\u7a0b\u5b89\u5168\u8003\u8651&#xff1a; \u867d\u7136\u91c7\u7528\u4e86\u591a\u7ebf\u7a0b&#xff0c;\u4f46\u5bf9\u6838\u5fc3\u6570\u636e self.tsr_manager.tsrs \u7684\u4fee\u6539\u90fd\u901a\u8fc7 TSRManager \u7684\u65b9\u6cd5\u8fdb\u884c&#xff0c;\u5e76\u4e14\u8fd9\u4e9b\u65b9\u6cd5\u5185\u90e8\u5bf9\u5217\u8868\u7684\u64cd\u4f5c&#xff08;\u6dfb\u52a0\u3001\u5220\u9664\u3001\u4fee\u6539\u5143\u7d20&#xff09;\u901a\u5e38\u662f\u539f\u5b50\u6027\u7684\u6216\u8005Python\u89e3\u91ca\u5668&#xff08;GIL&#xff09;\u63d0\u4f9b\u4e86\u9690\u5f0f\u4fdd\u62a4&#xff0c;\u56e0\u6b64\u5728\u672c\u9879\u76ee\u7684\u89c4\u6a21\u4e0b&#xff0c;\u5e76\u53d1\u8bbf\u95ee\u6570\u636e\u4e0d\u4f1a\u5f15\u8d77\u4e25\u91cd\u95ee\u9898\u3002\u66f4\u590d\u6742\u7684\u751f\u4ea7\u7cfb\u7edf\u4f1a\u5f15\u5165\u9501\u673a\u5236\u6765\u786e\u4fdd\u6570\u636e\u64cd\u4f5c\u7684\u4e25\u683c\u7ebf\u7a0b\u5b89\u5168\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3.3.2. TSRS\u4e0e\u5916\u90e8\u7cfb\u7edf\u63a5\u53e3\u6a21\u62df<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSRS\u4f5c\u4e3a\u96c6\u4e2d\u7ba1\u7406\u4e2d\u5fc3&#xff0c;\u9700\u8981\u4e0e\u591a\u79cd\u5916\u90e8\u7cfb\u7edf&#xff08;\u5982RBC\u3001TCC\u3001CTC&#xff09;\u8fdb\u884c\u4fe1\u606f\u4ea4\u4e92\u3002\u5728 TSRSui.py \u4e2d&#xff0c;\u6211\u4eec\u901a\u8fc7TCP\/IP\u8fde\u63a5\u6a21\u62df\u4e86\u8fd9\u79cd\u63a5\u53e3&#xff0c;\u5ba2\u6237\u7aef&#xff08;ClientGUI&#xff09;\u5c31\u4ee3\u8868\u4e86\u8fd9\u4e9b\u5916\u90e8\u7cfb\u7edf\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3.3.2.1. \u6570\u636e\u5237\u65b0\u4e0e\u5e7f\u64ad\u673a\u5236<\/p>\n<ul>\n<li style=\"text-align:justify\">\u8fde\u63a5\u6062\u590d\u65f6\u7684\u5237\u65b0&#xff08;\u89c4\u8303 5.5.1.6&#xff09;&#xff1a; \u5f53\u65b0\u7684\u5ba2\u6237\u7aef\u8fde\u63a5\u5230TSRS\u670d\u52a1\u5668\u65f6&#xff0c;\u670d\u52a1\u7aef\u4f1a\u4e3b\u52a8\u8c03\u7528 _send_tsrs_to_client(client_socket) \u65b9\u6cd5&#xff0c;\u5c06\u5f53\u524d\u6240\u6709&#xff08;\u5305\u62ec\u62df\u5b9a\u3001\u5df2\u4e0b\u8fbe\u3001\u5df2\u53d6\u6d88\u7b49&#xff09;\u7684\u9650\u901f\u547d\u4ee4\u6570\u636e\u53d1\u9001\u7ed9\u65b0\u8fde\u63a5\u7684\u5ba2\u6237\u7aef\u3002\u8fd9\u6a21\u62df\u4e86\u89c4\u8303\u4e2d\u201c\u5f53TSRS\u91cd\u542f\u6216\u4e0e\u5916\u90e8\u7cfb\u7edf\u901a\u4fe1\u8fde\u63a5\u4e2d\u65ad\u518d\u6062\u590d\u65f6&#xff0c;\u5e94\u5bf9\u76f8\u5173TCC\u3001RBC\u53ca\u76f8\u90bbTSRS\u9650\u901f\u547d\u4ee4\u5237\u65b0\u201d\u7684\u8981\u6c42\u3002\u65b0\u8fde\u63a5\u7684\u5ba2\u6237\u7aef&#xff08;RBC\/TCC&#xff09;\u9700\u8981\u7acb\u5373\u83b7\u53d6\u6700\u65b0\u7684\u5168\u5c40\u9650\u901f\u4fe1\u606f\u3002<\/li>\n<li style=\"text-align:justify\">\u6570\u636e\u53d8\u5316\u65f6\u7684\u5e7f\u64ad&#xff1a; TSRManager \u4e2d\u7684 tsr_updated \u4fe1\u53f7\u662f\u5b9e\u73b0\u5e7f\u64ad\u7684\u6838\u5fc3\u3002\u6bcf\u6b21 TSRManager \u4e2d\u7684\u9650\u901f\u6570\u636e\u53d1\u751f\u4efb\u4f55\u53d8\u5316&#xff08;\u521b\u5efa\u3001\u7f16\u8f91\u3001\u4e0b\u8fbe\u3001\u53d6\u6d88\u3001\u5220\u9664\u3001\u72b6\u6001\u81ea\u52a8\u66f4\u65b0&#xff09;\u65f6&#xff0c;\u90fd\u4f1a\u53d1\u5c04\u8fd9\u4e2a\u4fe1\u53f7\u3002ServerGUI \u4f1a\u76d1\u542c\u8fd9\u4e2a\u4fe1\u53f7&#xff0c;\u5e76\u8c03\u7528 server_instance.broadcast_tsrs() \u65b9\u6cd5\u3002 broadcast_tsrs() \u65b9\u6cd5\u4f1a\u904d\u5386\u6240\u6709\u5f53\u524d\u8fde\u63a5\u7684\u5ba2\u6237\u7aef&#xff0c;\u5411\u5b83\u4eec\u53d1\u9001\u4e00\u4e2a\u7c7b\u578b\u4e3a TSRS_UPDATE \u7684\u6d88\u606f&#xff0c;\u5176\u4e2d\u5305\u542b\u6240\u6709\u6700\u65b0\u7684\u9650\u901f\u547d\u4ee4\u5217\u8868\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">def broadcast_tsrs(self):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 all_tsrs_dicts &#061; [tsr.to_dict() for tsr in self.tsr_manager.get_all_tsrs()]<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 message &#061; {<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;type&#034;: &#034;TSRS_UPDATE&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;data&#034;: all_tsrs_dicts<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 }<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 # \u904d\u5386\u6240\u6709\u5ba2\u6237\u7aef\u5e76\u53d1\u9001\u6d88\u606f<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 for addr_str, client_sock in list(self.clients.items()):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 try:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._send_message(client_sock, message)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 except Exception as e:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 logging.warning(f&#034;\u5ba2\u6237\u7aef {addr_str} \u5e7f\u64ad\u5931\u8d25\u6216\u5df2\u65ad\u5f00: {e}. \u6807\u8bb0\u79fb\u9664\u3002&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # &#8230; (\u79fb\u9664\u65ad\u5f00\u7684\u5ba2\u6237\u7aef)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8fd9\u79cd\u5e7f\u64ad\u673a\u5236\u786e\u4fdd\u4e86\u6240\u6709\u8fde\u63a5\u5230TSRS\u7684RBC\u3001TCC\u6216\u76f8\u90bbTSRS\u90fd\u80fd\u53ca\u65f6\u83b7\u53d6\u5230\u6700\u65b0\u7684\u3001\u4e00\u81f4\u7684\u9650\u901f\u4fe1\u606f&#xff0c;\u4ee5\u4fbf\u5b83\u4eec\u80fd\u591f\u6839\u636e\u8fd9\u4e9b\u4fe1\u606f\u66f4\u65b0\u81ea\u8eab\u7684\u9650\u901f\u903b\u8f91\u5e76\u4e0b\u53d1\u7ed9\u5217\u8f66\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3.3.2.2. \u547d\u4ee4\u5904\u7406\u4e0e\u54cd\u5e94<\/p>\n<ul>\n<li style=\"text-align:justify\">_process_client_command(self, data, addr_str, client_socket) \u65b9\u6cd5&#xff1a; \u6b64\u65b9\u6cd5\u8d1f\u8d23\u89e3\u6790\u6765\u81ea\u5ba2\u6237\u7aef\u7684JSON\u547d\u4ee4&#xff0c;\u5e76\u6839\u636e\u547d\u4ee4\u7c7b\u578b\u8c03\u7528 TSRManager \u4e2d\u76f8\u5e94\u7684\u4e1a\u52a1\u903b\u8f91\u65b9\u6cd5\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 command &#061; json.loads(data)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 cmd_type &#061; command.get(&#039;type&#039;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 payload &#061; command.get(&#039;payload&#039;, {})<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 operator_name &#061; payload.get(&#039;operator&#039;, f&#034;\u5ba2\u6237\u7aef&#064;{addr_str}&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 if cmd_type &#061;&#061; &#039;GET_ALL_TSRS&#039;:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._send_tsrs_to_client(client_socket)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 response &#061; {&#034;status&#034;: &#034;success&#034;, &#034;message&#034;: &#034;\u5df2\u53d1\u9001\u6240\u6709TSR\u6570\u636e&#034;, &#034;type&#034;: &#034;response&#034;}<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._send_message(client_socket, response)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 elif cmd_type &#061;&#061; &#039;CREATE_TSR&#039;:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 tsr, errors &#061; self.tsr_manager.create_tsr(payload, operator&#061;operator_name)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # &#8230; \u5904\u7406\u7ed3\u679c\u5e76\u53d1\u9001\u54cd\u5e94<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 # &#8230; \u5176\u4ed6\u547d\u4ee4\u7c7b\u578b (UPDATE, DELETE, ISSUE, CANCEL)<\/p>\n<ul>\n<li style=\"text-align:justify\">\u54cd\u5e94\u673a\u5236&#xff1a; \u5bf9\u4e8e\u5ba2\u6237\u7aef\u53d1\u51fa\u7684\u6bcf\u4e2a\u64cd\u4f5c\u547d\u4ee4&#xff08;\u5982 CREATE_TSR&#xff09;&#xff0c;\u670d\u52a1\u7aef\u5728\u5904\u7406\u5b8c\u6210\u540e&#xff0c;\u90fd\u4f1a\u7acb\u5373\u5411\u8be5\u5ba2\u6237\u7aef\u53d1\u9001\u4e00\u4e2a\u7c7b\u578b\u4e3a &#039;response&#039; \u7684\u6d88\u606f\u3002\u8fd9\u4e2a\u54cd\u5e94\u6d88\u606f\u5305\u542b\u64cd\u4f5c\u7ed3\u679c&#xff08;status&#xff1a;&#034;success&#034; \u6216 &#034;error&#034;&#xff09;\u548c\u76f8\u5173\u4fe1\u606f&#xff08;message\u3001data&#xff09;\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"># \u793a\u4f8b\u54cd\u5e94<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">response &#061; {&#034;status&#034;: &#034;success&#034;, &#034;message&#034;: &#034;TSR\u521b\u5efa\u6210\u529f&#034;, &#034;data&#034;: tsr.to_dict(), &#034;type&#034;: &#034;response&#034;}<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">self._send_message(client_socket, response)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8fd9\u79cd\u201c\u8bf7\u6c42-\u54cd\u5e94\u201d\u6a21\u5f0f\u4f7f\u5f97\u5ba2\u6237\u7aef\u80fd\u591f\u53ca\u65f6\u4e86\u89e3\u5176\u64cd\u4f5c\u662f\u5426\u6210\u529f&#xff0c;\u4ee5\u53ca\u5931\u8d25\u7684\u539f\u56e0\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.4. TSRM\u529f\u80fd\u6a21\u62df<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5728 TSRSui.py \u4e2d&#xff0c;ServerGUI \u7c7b\u4e0d\u4ec5\u662fTSRS\u7684\u56fe\u5f62\u7528\u6237\u754c\u9762&#xff0c;\u8fd8\u6a21\u62df\u4e86\u300aTSRS\u6280\u672f\u89c4\u8303\u300b\u4e2d\u5bf9TSRM&#xff08;TSRS\u7ef4\u62a4\u7ec8\u7aef&#xff09;\u7684\u4e3b\u8981\u529f\u80fd\u8981\u6c42\u3002<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.4.1. \u9650\u901f\u547d\u4ee4\u5217\u8868\u4e0e\u8be6\u60c5<\/span><\/h4>\n<ul>\n<li style=\"text-align:justify\">\u5217\u8868\u5c55\u793a&#xff1a; ServerGUI \u4f7f\u7528 QTableView \u548c TSRTableModel \u6765\u6e05\u6670\u5730\u5c55\u793a\u6240\u6709\u4e34\u65f6\u9650\u901f\u547d\u4ee4\u7684\u5217\u8868\u3002TSRTableModel \u5c06 TSR \u5bf9\u8c61\u7684\u6570\u636e\u8f6c\u6362\u4e3a\u8868\u683c\u53ef\u663e\u793a\u7684\u5f62\u5f0f&#xff0c;\u5e76\u5b9a\u4e49\u4e86\u8868\u5934&#xff08;\u7f16\u53f7\u3001\u8c03\u5ea6\u547d\u4ee4\u53f7\u3001\u7ebf\u8def\u3001\u9650\u901f\u503c\u3001\u751f\u6548\/\u5931\u6548\u65f6\u95f4\u3001\u72b6\u6001\u3001\u64cd\u4f5c\u5458\u7b49&#xff09;\u3002\u5f53 TSRManager \u53d1\u51fa tsr_updated \u4fe1\u53f7\u65f6&#xff0c;TSRTableModel \u4f1a\u81ea\u52a8\u66f4\u65b0\u5176\u6570\u636e&#xff0c;\u4ece\u800c\u5237\u65b0 QTableView \u7684\u663e\u793a\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 self.tsr_table_view &#061; QTableView()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 self.tsr_table_model &#061; TSRTableModel(self.tsr_manager.get_all_tsrs())<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 self.tsr_table_view.setModel(self.tsr_table_model)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 self.tsr_table_view.setSelectionBehavior(QTableView.SelectRows)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 self.tsr_table_view.setSelectionMode(QTableView.SingleSelection)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 self.tsr_table_view.horizontalHeader().setSectionResizeMode(QHeaderView.ResizeToContents)<\/p>\n<ul>\n<li style=\"text-align:justify\">\u8be6\u60c5\u7f16\u8f91&#xff1a; TSRDetailDialog \u5bf9\u8bdd\u6846\u7528\u4e8e\u521b\u5efa\u548c\u7f16\u8f91\u9650\u901f\u547d\u4ee4\u3002\u5b83\u901a\u8fc7 load_data() \u65b9\u6cd5\u52a0\u8f7d\u73b0\u6709 TSR \u5bf9\u8c61\u7684\u6570\u636e&#xff0c;\u5e76\u901a\u8fc7 get_data() \u65b9\u6cd5\u83b7\u53d6\u7528\u6237\u8f93\u5165\u7684\u65b0\u6570\u636e\u3002\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u5b9e\u73b0\u4e86\u6839\u636e\u7ebf\u8def\u7c7b\u578b&#xff08;\u6b63\u7ebf\/\u4fa7\u7ebf&#xff09;\u52a8\u6001\u8c03\u6574\u8f93\u5165\u5b57\u6bb5\u7684\u53ef\u89c1\u6027\u548c\u6821\u9a8c\u89c4\u5219&#xff0c;\u4f8b\u5982\u4fa7\u7ebf\u91cc\u7a0b\u6807\u7684\u56fa\u5b9a\u503c\u548c\u9650\u901f\u503c\u6863\u4f4d\u7684\u9650\u5236&#xff0c;\u4ee5\u53ca\u6b63\u7ebf\u9650\u901f\u503c\u7684\u63a8\u8350\u6863\u4f4d\u548c\u81ea\u5b9a\u4e49\u8f93\u5165\u529f\u80fd\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"># TSRDetailDialog \u521d\u59cb\u5316\u53ca\u5b57\u6bb5\u7ba1\u7406<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">self.fields[&#039;line_type&#039;] &#061; QComboBox() # \u7ebf\u8def\u7c7b\u578b\u9009\u62e9<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">self.fields[&#039;line_type&#039;].addItems([&#039;\u6b63\u7ebf&#039;, &#039;\u4fa7\u7ebf&#039;])<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">self.fields[&#039;line_type&#039;].currentIndexChanged.connect(self._update_fields_visibility) # \u52a8\u6001\u8c03\u6574\u5b57\u6bb5<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">self.speed_limit_combo &#061; QComboBox() # \u9650\u901f\u503c&#xff0c;\u53ef\u7f16\u8f91<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">self.speed_limit_combo.setEditable(True)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">self.speed_limit_combo.setValidator(QIntValidator(1, 999, self))<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8fd9\u90e8\u5206\u6a21\u62df\u4e86\u89c4\u8303 5.2\u8282\u9650\u901f\u8bbe\u7f6e\u89c4\u5219\u5728\u7528\u6237\u754c\u9762\u7684\u4f53\u73b0\u3002<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.4.2. \u5ba2\u6237\u7aef\u8fde\u63a5\u72b6\u6001\u663e\u793a<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">ServerGUI \u901a\u8fc7 QListWidget \u5b9e\u65f6\u663e\u793a\u5f53\u524d\u5df2\u8fde\u63a5\u5230TSRS\u7684\u5ba2\u6237\u7aef\u5217\u8868\u3002TSRServer \u53d1\u51fa\u7684 client_connected \u548c client_disconnected \u4fe1\u53f7\u88ab ServerGUI \u76d1\u542c&#xff0c;\u4ece\u800c\u52a8\u6001\u6dfb\u52a0\u6216\u79fb\u9664\u5217\u8868\u9879\u3002\u8fd9\u4e3a\u7ef4\u62a4\u4eba\u5458\u63d0\u4f9b\u4e86TSRS\u4e0e\u5916\u90e8\u7cfb\u7edf\u8fde\u63a5\u72b6\u6001\u7684\u6982\u89c8\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.client_list &#061; QListWidget()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # &#8230;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.server_instance.client_connected.connect(self.add_client_to_list)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.server_instance.client_disconnected.connect(self.remove_client_from_list)<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">3.4.3. \u64cd\u4f5c\u65e5\u5fd7\u8bb0\u5f55<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">ServerGUI \u4f7f\u7528 QTextBrowser \u663e\u793aTSRS\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u4ea7\u751f\u7684\u65e5\u5fd7\u4fe1\u606f\u3002TSRServer \u548c TSRManager \u4f1a\u901a\u8fc7 log_message \u4fe1\u53f7\u5411GUI\u53d1\u9001\u5404\u79cd\u64cd\u4f5c\u3001\u901a\u4fe1\u548c\u9519\u8bef\u65e5\u5fd7\u3002\u8fd9\u6a21\u62df\u4e86\u89c4\u8303 5.8.1.4 \u201cTSRM\u5e94\u8bb0\u5f55\u4e34\u65f6\u9650\u901f\u547d\u4ee4\u72b6\u6001\u3001\u7cfb\u7edf\u5de5\u4f5c\u72b6\u6001\u3001\u4e0e\u76f8\u5173\u5916\u90e8\u7cfb\u7edf\u901a\u4fe1\u8fc7\u7a0b\u7b49\u4e8b\u4ef6\u201d\u7684\u8981\u6c42\u3002\u65e5\u5fd7\u8bb0\u5f55\u5bf9\u4e8e\u7cfb\u7edf\u8c03\u8bd5\u3001\u6545\u969c\u6392\u67e5\u548c\u4e8b\u4ef6\u8ffd\u6eaf\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.log_browser &#061; QTextBrowser()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # &#8230;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.server_instance.log_message.connect(self.append_log)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u867d\u7136\u672c\u5b9e\u73b0\u6ca1\u6709\u5c06\u65e5\u5fd7\u6301\u4e45\u5316\u5230\u6587\u4ef6\u6216\u6570\u636e\u5e93&#xff0c;\u4f46\u901a\u8fc7 logging \u6a21\u5757\u7684\u914d\u7f6e&#xff0c;\u65e5\u5fd7\u540c\u65f6\u8f93\u51fa\u5230\u63a7\u5236\u53f0\u548c\u6587\u4ef6 tsrs_server_client.log&#xff0c;\u90e8\u5206\u5b9e\u73b0\u4e86\u65e5\u5fd7\u8bb0\u5f55\u548c\u4fdd\u5b58\u529f\u80fd\u3002<\/p>\n<hr \/>\n<h2 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">\u7b2c 4 \u7ae0 TSRS\u5ba2\u6237\u7aef\u529f\u80fd\u4e0e\u4ea4\u4e92<\/span><\/h2>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSRSui.py \u4e2d\u7684 ClientGUI \u548c TSRClient \u7c7b\u6a21\u62df\u4e86\u5217\u8f66\u8fd0\u884c\u63a7\u5236\u7cfb\u7edf\u4e2d\u7684\u4e00\u4e2a\u5916\u90e8\u8bbe\u5907&#xff08;\u5982RBC\u3001TCC\u6216\u8f66\u8f7d\u7cfb\u7edf&#xff09;&#xff0c;\u5b83\u9700\u8981\u4eceTSRS\u83b7\u53d6\u5b9e\u65f6\u7684\u4e34\u65f6\u9650\u901f\u4fe1\u606f&#xff0c;\u5e76\u6839\u636e\u8fd9\u4e9b\u4fe1\u606f\u8c03\u6574\u5217\u8f66\u7684\u8fd0\u884c\u3002\u672c\u7ae0\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5ba2\u6237\u7aef\u7684\u529f\u80fd\u4e0e\u4ea4\u4e92\u903b\u8f91\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">4.1. \u5ba2\u6237\u7aef\u8fde\u63a5\u7ba1\u7406<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSRClient \u7c7b\u8d1f\u8d23\u5efa\u7acb\u548c\u7ef4\u62a4\u4e0eTSRS\u670d\u52a1\u7aef\u7684\u7f51\u7edc\u8fde\u63a5\u3002<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">4.1.1. \u8fde\u63a5\u4e0e\u65ad\u5f00<\/span><\/h4>\n<ul>\n<li style=\"text-align:justify\">connect_to_server(self) \u65b9\u6cd5&#xff1a; \u8be5\u65b9\u6cd5\u5c1d\u8bd5\u521b\u5efa\u4e00\u4e2aTCP\/IP\u5957\u63a5\u5b57\u5e76\u8fde\u63a5\u5230\u9884\u8bbe\u7684\u670d\u52a1\u5668\u5730\u5740\u548c\u7aef\u53e3\u3002\u4e3a\u4e86\u63d0\u4f9b\u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c&#xff0c;\u5b83\u589e\u52a0\u4e86\u8fde\u63a5\u72b6\u6001\u7684\u68c0\u67e5 (self.client_socket \u548c self._is_connecting)&#xff0c;\u907f\u514d\u91cd\u590d\u8fde\u63a5\u6216\u5728\u8fde\u63a5\u8fc7\u7a0b\u4e2d\u518d\u6b21\u89e6\u53d1\u8fde\u63a5\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 try:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.client_socket &#061; socket.socket(socket.AF_INET, socket.SOCK_STREAM)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.client_socket.settimeout(5) # \u8bbe\u7f6e\u8fde\u63a5\u8d85\u65f6&#xff0c;\u9632\u6b62\u957f\u65f6\u95f4\u963b\u585e<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.client_socket.connect((self.host, self.port))<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.client_socket.settimeout(None) # \u8fde\u63a5\u6210\u529f\u540e\u79fb\u9664\u8d85\u65f6\u8bbe\u7f6e<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.client_log_message.emit(f&#034;\u6210\u529f\u8fde\u63a5\u81f3\u670d\u52a1\u5668 {self.host}:{self.port}&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.connection_status_changed.emit(True) # \u53d1\u51fa\u8fde\u63a5\u6210\u529f\u4fe1\u53f7<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u8fde\u63a5\u6210\u529f\u540e\u7acb\u5373\u542f\u52a8\u63a5\u6536\u7ebf\u7a0b<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._receiving_active &#061; True<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._receive_thread &#061; threading.Thread(target&#061;self._receive_data_loop)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._receive_thread.daemon &#061; True<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._receive_thread.start()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u8fde\u63a5\u6210\u529f\u540e\u7acb\u5373\u8bf7\u6c42\u6240\u6709TSR\u6570\u636e&#xff0c;\u6a21\u62df\u89c4\u83035.5.1.6\u7684\u5237\u65b0<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.send_command(&#039;GET_ALL_TSRS&#039;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return True<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 except socket.timeout:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # &#8230; \u5904\u7406\u8d85\u65f6<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 except ConnectionRefusedError:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # &#8230; \u5904\u7406\u62d2\u7edd\u8fde\u63a5<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 except Exception as e:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # &#8230; \u5904\u7406\u5176\u4ed6\u9519\u8bef<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 finally:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._is_connecting &#061; False<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8fde\u63a5\u6210\u529f\u540e&#xff0c;\u5ba2\u6237\u7aef\u4f1a\u7acb\u5373\u542f\u52a8\u4e00\u4e2a\u72ec\u7acb\u7684\u7ebf\u7a0b _receive_data_loop \u6765\u6301\u7eed\u63a5\u6536\u670d\u52a1\u5668\u53d1\u9001\u7684\u6570\u636e&#xff0c;\u5e76\u4e3b\u52a8\u5411\u670d\u52a1\u5668\u53d1\u9001 GET_ALL_TSRS \u547d\u4ee4\u8bf7\u6c42\u5168\u91cf\u9650\u901f\u6570\u636e&#xff0c;\u8fd9\u7b26\u5408\u89c4\u8303 5.5.1.6 \u4e2d\u201cTSRS\u91cd\u542f\u6216\u4e0e\u5916\u90e8\u7cfb\u7edf\u901a\u4fe1\u8fde\u63a5\u4e2d\u65ad\u518d\u6062\u590d\u65f6&#xff0c;\u5e94\u5bf9\u76f8\u5173TCC\u3001RBC\u53ca\u76f8\u90bbTSRS\u9650\u901f\u547d\u4ee4\u5237\u65b0\u201d\u7684\u539f\u5219&#xff0c;\u786e\u4fdd\u5ba2\u6237\u7aef\u5728\u8fde\u63a5\u5efa\u7acb\u6216\u6062\u590d\u540e\u80fd\u591f\u83b7\u53d6\u5230\u6700\u65b0\u7684\u5168\u5c40\u6570\u636e\u3002<\/p>\n<ul>\n<li style=\"text-align:justify\">disconnect_from_server(self, initiate_reconnect&#061;False) \u65b9\u6cd5&#xff1a; \u8be5\u65b9\u6cd5\u8d1f\u8d23\u5b89\u5168\u5730\u5173\u95ed\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u7684\u8fde\u63a5\u3002\u5b83\u9996\u5148\u8bbe\u7f6e _receiving_active \u4e3a False&#xff0c;\u901a\u77e5\u63a5\u6536\u7ebf\u7a0b\u9000\u51fa\u5faa\u73af&#xff0c;\u7136\u540e\u5c1d\u8bd5\u5173\u95ed\u5957\u63a5\u5b57\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 if self.client_socket:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._receiving_active &#061; False<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 try:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.client_socket.shutdown(socket.SHUT_RDWR) # \u4f18\u96c5\u5173\u95ed<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.client_socket.close()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 except Exception as e:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.client_log_message.emit(f&#034;\u5173\u95edsocket\u5931\u8d25: {e}&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 finally:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.client_socket &#061; None<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.connection_status_changed.emit(False) # \u53d1\u51fa\u8fde\u63a5\u72b6\u6001\u53d8\u5316\u4fe1\u53f7<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.client_log_message.emit(&#034;\u5df2\u4ece\u670d\u52a1\u5668\u65ad\u5f00\u8fde\u63a5\u3002&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 # &#8230; \u505c\u6b62\u6216\u542f\u52a8\u91cd\u8fde\u8ba1\u65f6\u5668<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u901a\u8fc7 shutdown(socket.SHUT_RDWR) \u5c1d\u8bd5\u5728\u5173\u95ed\u524d\u505c\u6b62\u8bfb\u5199&#xff0c;\u907f\u514d BrokenPipeError\u3002<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">4.1.2. \u81ea\u52a8\u91cd\u8fde\u673a\u5236<\/span><\/h4>\n<ul>\n<li style=\"text-align:justify\">_reconnect_timer&#xff1a; \u4e3a\u4e86\u6a21\u62df\u5b9e\u9645\u7cfb\u7edf\u4e2d\u901a\u4fe1\u4e2d\u65ad\u540e\u81ea\u52a8\u6062\u590d\u8fde\u63a5\u7684\u80fd\u529b&#xff0c;TSRClient \u5185\u7f6e\u4e86\u4e00\u4e2a QTimer (_reconnect_timer)\u3002\n<ul>\n<li style=\"text-align:justify\">\u5f53\u8fde\u63a5\u5931\u8d25&#xff08;\u5982 ConnectionRefusedError, socket.timeout&#xff09;\u6216\u8fde\u63a5\u610f\u5916\u65ad\u5f00&#xff08;\u5982 ConnectionResetError&#xff09;\u65f6&#xff0c;disconnect_from_server \u65b9\u6cd5\u4f1a\u88ab\u8c03\u7528\u5e76\u4f20\u5165 initiate_reconnect&#061;True\u3002<\/li>\n<li style=\"text-align:justify\">\u8fd9\u4f1a\u89e6\u53d1 start_reconnect_timer() \u65b9\u6cd5&#xff0c;\u542f\u52a8\u5b9a\u65f6\u5668&#xff0c;\u6bcf\u9694 reconnect_interval_ms&#xff08;\u4f8b\u59823\u79d2&#xff09;\u8c03\u7528 attempt_reconnect() \u65b9\u6cd5\u3002<\/li>\n<li style=\"text-align:justify\">attempt_reconnect() \u518d\u6b21\u5c1d\u8bd5\u8c03\u7528 connect_to_server()\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">self.reconnect_interval_ms &#061; 3000 # 3\u79d2\u91cd\u8fde\u4e00\u6b21<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">self._reconnect_timer &#061; QTimer(self)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">self._reconnect_timer.timeout.connect(self.attempt_reconnect)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">def start_reconnect_timer(self):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 if not self._reconnect_timer.isActive():<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._reconnect_timer.start(self.reconnect_interval_ms)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">def stop_reconnect_timer(self):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 if self._reconnect_timer.isActive():<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self._reconnect_timer.stop()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5f53\u6210\u529f\u8fde\u63a5\u540e&#xff0c;connect_to_server() \u4f1a\u8c03\u7528 stop_reconnect_timer()&#xff0c;\u505c\u6b62\u81ea\u52a8\u91cd\u8fde&#xff0c;\u76f4\u5230\u518d\u6b21\u51fa\u73b0\u8fde\u63a5\u95ee\u9898\u3002\u8fd9\u79cd\u673a\u5236\u786e\u4fdd\u4e86\u5ba2\u6237\u7aef\u5728\u7f51\u7edc\u4e0d\u7a33\u5b9a\u6216\u670d\u52a1\u5668\u6682\u65f6\u79bb\u7ebf\u540e&#xff0c;\u80fd\u591f\u81ea\u52a8\u5c1d\u8bd5\u6062\u590d\u8fde\u63a5&#xff0c;\u63d0\u9ad8\u4e86\u7cfb\u7edf\u7684\u53ef\u7528\u6027&#xff0c;\u6a21\u62df\u4e86\u89c4\u8303 5.5.1.6 \u4e2d\u201c\u4e0e\u5916\u90e8\u7cfb\u7edf\u901a\u4fe1\u8fde\u63a5\u4e2d\u65ad\u518d\u6062\u590d\u65f6\u201d\u7684\u884c\u4e3a\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">4.2. \u9650\u901f\u4fe1\u606f\u63a5\u6536\u4e0e\u5c55\u793a<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5ba2\u6237\u7aef\u7684\u4e3b\u8981\u4efb\u52a1\u662f\u63a5\u6536\u670d\u52a1\u5668\u5e7f\u64ad\u7684\u9650\u901f\u4fe1\u606f&#xff0c;\u5e76\u5c06\u5176\u7b5b\u9009\u540e\u5c55\u793a\u7ed9\u7528\u6237\u6216\u5185\u90e8\u4f7f\u7528\u3002<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">4.2.1. TSRS_UPDATE\u6d88\u606f\u5904\u7406<\/span><\/h4>\n<ul>\n<li style=\"text-align:justify\">_receive_data_loop() \u65b9\u6cd5&#xff1a; \u6b64\u65b9\u6cd5\u5728\u4e00\u4e2a\u72ec\u7acb\u7ebf\u7a0b\u4e2d\u8fd0\u884c&#xff0c;\u6301\u7eed\u4eceSocket\u8bfb\u53d6\u6570\u636e\u3002\u5b83\u5b9e\u73b0\u4e86\u4e0e\u670d\u52a1\u7aef\u76f8\u540c\u7684\u957f\u5ea6\u524d\u7f00\u89e3\u6790\u903b\u8f91&#xff0c;\u786e\u4fdd\u5b8c\u6574\u8bfb\u53d6\u6bcf\u6761JSON\u6d88\u606f\u3002 \u4e00\u65e6\u63a5\u6536\u5230\u5b8c\u6574\u7684JSON\u6d88\u606f&#xff0c;\u5b83\u4f1a\u8c03\u7528 _process_server_message(message) \u65b9\u6cd5\u3002<\/li>\n<li style=\"text-align:justify\">_process_server_message(self, message) \u65b9\u6cd5&#xff1a; \u8be5\u65b9\u6cd5\u6839\u636e\u6d88\u606f\u7684 type \u5b57\u6bb5\u8fdb\u884c\u5206\u53d1\u5904\u7406\u3002\u5f53 type \u4e3a &#039;TSRS_UPDATE&#039; \u65f6&#xff0c;\u8bf4\u660e\u670d\u52a1\u5668\u53d1\u6765\u4e86\u6700\u65b0\u7684\u9650\u901f\u5217\u8868\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 if msg_type &#061;&#061; &#039;TSRS_UPDATE&#039;:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 tsrs_data &#061; message.get(&#039;data&#039;, [])<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.client_log_message.emit(f&#034;\u63a5\u6536\u5230 {len(tsrs_data)} \u6761\u9650\u901f\u66f4\u65b0\u3002&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.tsr_data_received.emit(tsrs_data) # \u53d1\u9001\u4fe1\u53f7\u7ed9GUI<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 elif msg_type &#061;&#061; &#039;response&#039;:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.client_log_message.emit(f&#034;\u6536\u5230\u670d\u52a1\u5668\u54cd\u5e94: {message.get(&#039;message&#039;, &#039;\u65e0\u6d88\u606f&#039;)}&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 # &#8230;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8fd9\u91cc&#xff0c;tsr_data_received \u4fe1\u53f7\u4f1a\u88ab\u53d1\u5c04&#xff0c;\u5c06\u63a5\u6536\u5230\u7684\u539f\u59cb\u9650\u901f\u6570\u636e\u5217\u8868\u4f20\u9012\u7ed9 ClientGUI\u3002<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">4.2.2. \u6709\u6548\u9650\u901f\u4fe1\u606f\u7b5b\u9009\u4e0e\u663e\u793a<\/span><\/h4>\n<ul>\n<li style=\"text-align:justify\">ClientGUI.update_tsr_list(self, tsrs_data) \u65b9\u6cd5&#xff1a; \u8fd9\u662f ClientGUI \u63a5\u6536\u5230 tsr_data_received \u4fe1\u53f7\u540e\u7684\u69fd\u51fd\u6570\u3002\u5b83\u4e0d\u4f1a\u7b80\u5355\u5730\u663e\u793a\u6240\u6709\u63a5\u6536\u5230\u7684\u9650\u901f\u547d\u4ee4&#xff0c;\u800c\u662f\u6839\u636e\u5ba2\u6237\u7aef&#xff08;\u4f8b\u5982\u6a21\u62df\u7684RBC&#xff09;\u7684\u9700\u6c42&#xff0c;\u53ea\u663e\u793a\u5f53\u524d\u201c\u6709\u6548\u201d\u7684\u9650\u901f\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 active_tsrs &#061; [<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TSR(data).to_dict() for data in tsrs_data<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if TSR(data).is_active() # \u4ec5\u663e\u793a\u72b6\u6001\u4e3a&#039;\u5df2\u4e0b\u8fbe&#039;\u4e14\u5728\u751f\u6548\u65f6\u95f4\u8303\u56f4\u5185\u7684\u9650\u901f<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 ]<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 self.tsr_table.setRowCount(len(active_tsrs))<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 for row, tsr_dict in enumerate(active_tsrs):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # &#8230; \u586b\u5145\u8868\u683c\u6570\u636e<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 self.tsr_table.resizeColumnsToContents()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 self.append_log(f&#034;\u5df2\u66f4\u65b0\u5ba2\u6237\u7aef\u9650\u901f\u5217\u8868&#xff0c;\u663e\u793a {len(active_tsrs)} \u6761\u6709\u6548\u9650\u901f\u3002&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u901a\u8fc7\u8c03\u7528 TSR(data).is_active() \u65b9\u6cd5&#xff0c;\u5ba2\u6237\u7aef\u6a21\u62df\u4e86RBC\u6216\u8f66\u8f7d\u8bbe\u5907\u5728\u63a5\u6536\u5230\u9650\u901f\u4fe1\u606f\u540e&#xff0c;\u6839\u636e\u81ea\u8eab\u65f6\u949f\u548c\u9650\u901f\u7684\u751f\u6548\/\u5931\u6548\u65f6\u95f4&#xff0c;\u52a8\u6001\u5224\u65ad\u54ea\u4e9b\u9650\u901f\u662f\u5f53\u524d\u9700\u8981\u5b9e\u9645\u751f\u6548\u5e76\u7528\u4e8e\u901f\u5ea6\u9632\u62a4\u7684\u3002\u8fd9\u7b26\u5408\u5b9e\u9645\u5217\u63a7\u7cfb\u7edf\u4ec5\u5904\u7406\u5f53\u524d\u6709\u6548\u6570\u636e\u7684\u903b\u8f91\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">4.3. \u5ba2\u6237\u7aef\u8bf7\u6c42\u4e0e\u65e5\u5fd7<\/span><\/h3>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">4.3.1. \u5237\u65b0\u8bf7\u6c42<\/span><\/h4>\n<ul>\n<li style=\"text-align:justify\">request_all_tsrs(self) \u65b9\u6cd5&#xff1a; \u8fd9\u662f\u7531 ClientGUI \u4e0a\u7684\u201c\u5237\u65b0\u9650\u901f\u4fe1\u606f\u201d\u6309\u94ae\u89e6\u53d1\u7684\u65b9\u6cd5\u3002\u5b83\u901a\u8fc7 send_command(&#039;GET_ALL_TSRS&#039;) \u5411\u670d\u52a1\u5668\u53d1\u9001\u4e00\u4e2a\u8bf7\u6c42&#xff0c;\u8981\u6c42\u670d\u52a1\u5668\u91cd\u65b0\u53d1\u9001\u6240\u6709\u9650\u901f\u6570\u636e\u3002\u8fd9\u6a21\u62df\u4e86\u5ba2\u6237\u7aef\u5728\u9700\u8981\u624b\u52a8\u540c\u6b65\u6570\u636e\u65f6\u53d1\u8d77\u7684\u8bf7\u6c42&#xff0c;\u6216\u8005\u5728\u67d0\u4e9b\u72b6\u6001\u5f02\u5e38\u65f6\u4e3b\u52a8\u5237\u65b0\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">def request_all_tsrs(self):<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 if self.client_socket:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.send_command(&#039;GET_ALL_TSRS&#039;)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 else:<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.client_log_message.emit(&#034;\u672a\u8fde\u63a5\u5230\u670d\u52a1\u5668&#xff0c;\u65e0\u6cd5\u5237\u65b0\u9650\u901f\u4fe1\u606f\u3002&#034;)<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">4.3.2. \u5ba2\u6237\u7aef\u64cd\u4f5c\u65e5\u5fd7<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">ClientGUI \u4e5f\u5185\u7f6e\u4e86\u4e00\u4e2a QTextBrowser \u6765\u663e\u793a\u5ba2\u6237\u7aef\u81ea\u8eab\u7684\u8fd0\u884c\u65e5\u5fd7&#xff0c;\u5305\u62ec\u8fde\u63a5\u72b6\u6001\u3001\u6d88\u606f\u6536\u53d1\u60c5\u51b5\u3001\u9519\u8bef\u4fe1\u606f\u7b49\u3002TSRClient \u901a\u8fc7 client_log_message \u4fe1\u53f7\u5c06\u8fd9\u4e9b\u65e5\u5fd7\u4fe1\u606f\u4f20\u9012\u7ed9GUI\u663e\u793a\u3002\u8fd9\u5bf9\u4e8e\u5ba2\u6237\u7aef\u7684\u8c03\u8bd5\u548c\u72b6\u6001\u76d1\u63a7\u662f\u5fc5\u8981\u7684\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">python\u590d\u5236\u4ee3\u7801<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.log_browser &#061; QTextBrowser()<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # &#8230;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 client.client_log_message.connect(client_gui.append_log)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u901a\u8fc7\u4e0a\u8ff0\u529f\u80fd\u8bbe\u8ba1&#xff0c;\u5ba2\u6237\u7aef\u80fd\u591f\u53ef\u9760\u5730\u4e0eTSRS\u670d\u52a1\u5668\u5efa\u7acb\u8fde\u63a5&#xff0c;\u63a5\u6536\u5e76\u5904\u7406\u5b9e\u65f6\u66f4\u65b0\u7684\u4e34\u65f6\u9650\u901f\u4fe1\u606f&#xff0c;\u5e76\u5728\u7528\u6237\u754c\u9762\u4e0a\u6e05\u6670\u5730\u5c55\u793a\u5f53\u524d\u6709\u6548\u7684\u9650\u901f\u6570\u636e&#xff0c;\u4ece\u800c\u6a21\u62df\u4e86\u5217\u63a7\u5730\u9762\u8bbe\u5907\u5728\u63a5\u6536\u548c\u5e94\u7528\u4e34\u65f6\u9650\u901f\u4fe1\u606f\u65b9\u9762\u7684\u6838\u5fc3\u80fd\u529b\u3002<\/p>\n<hr \/>\n<h2 style=\"margin-left:0px;margin-right:0px;text-align:justify\"><span style=\"color:#0f4761\">\u7b2c 5 \u7ae0 \u7cfb\u7edf\u5b9e\u73b0\u4e0e\u6d4b\u8bd5<\/span><\/h2>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u672c\u7ae0\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668&#xff08;TSRS&#xff09;\u4eff\u771f\u7cfb\u7edf\u7684\u7f16\u7a0b\u8bed\u8a00\u3001\u5f00\u53d1\u73af\u5883\u4ee5\u53ca\u5bf9\u5404\u9879\u6838\u5fc3\u529f\u80fd\u8fdb\u884c\u7684\u6d4b\u8bd5\u548c\u9a8c\u8bc1\u3002<\/p>\n<h3 style=\"margin-left:0px;margin-right:0px;text-align:justify\"><span style=\"color:#0f4761\">5.1. \u7f16\u7a0b\u8bed\u8a00\u4e0e\u5f00\u53d1\u73af\u5883<\/span><\/h3>\n<ul>\n<li style=\"text-align:justify\">\u7f16\u7a0b\u8bed\u8a00&#xff1a; Python 3.9&#043; \u9009\u62e9Python\u4f5c\u4e3a\u5f00\u53d1\u8bed\u8a00\u7684\u539f\u56e0\u5728\u4e8e\u5176\u7b80\u6d01\u7684\u8bed\u6cd5\u3001\u4e30\u5bcc\u7684\u5e93\u652f\u6301\u4ee5\u53ca\u5feb\u901f\u539f\u578b\u5f00\u53d1\u7684\u4f18\u52bf\u3002Python\u5728\u7f51\u7edc\u7f16\u7a0b\u3001\u6570\u636e\u5904\u7406\u548cGUI\u5f00\u53d1\u65b9\u9762\u90fd\u6709\u6210\u719f\u7684\u89e3\u51b3\u65b9\u6848&#xff0c;\u975e\u5e38\u9002\u5408\u672c\u6b21\u8bfe\u7a0b\u8bbe\u8ba1\u4e2d\u5bf9\u529f\u80fd\u5feb\u901f\u8fed\u4ee3\u548c\u9a8c\u8bc1\u7684\u9700\u6c42\u3002<\/li>\n<li style=\"text-align:justify\">GUI\u6846\u67b6&#xff1a; PyQt5 PyQt5\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u4e14\u6210\u719f\u7684Python\u7ed1\u5b9a\u5e93&#xff0c;\u7528\u4e8e\u5f00\u53d1\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u5c01\u88c5\u4e86Qt\u6846\u67b6&#xff0c;\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684UI\u7ec4\u4ef6\u548c\u4fe1\u53f7\u69fd\u673a\u5236&#xff0c;\u4f7f\u5f97\u5f00\u53d1\u4ea4\u4e92\u5f0f\u754c\u9762\u53d8\u5f97\u9ad8\u6548\u3002\u5728\u672c\u7cfb\u7edf\u4e2d&#xff0c;PyQt5\u7528\u4e8e\u6784\u5efa\u670d\u52a1\u7aef&#xff08;TSRS\u7ba1\u7406\u4e2d\u5fc3&#xff09;\u548c\u5ba2\u6237\u7aef&#xff08;\u5217\u8f66\u8fd0\u884c\u7ec8\u7aef&#xff09;\u7684\u56fe\u5f62\u7528\u6237\u754c\u9762&#xff0c;\u5b9e\u73b0\u4e86\u7528\u6237\u53cb\u597d\u7684\u6570\u636e\u5c55\u793a\u548c\u64cd\u4f5c\u4ea4\u4e92\u3002<\/li>\n<li style=\"text-align:justify\">\u7f51\u7edc\u901a\u4fe1&#xff1a; Python\u5185\u7f6e\u7684 socket \u6a21\u5757\u548c threading \u6a21\u5757 socket \u6a21\u5757\u63d0\u4f9b\u4e86\u5e95\u5c42\u7f51\u7edc\u901a\u4fe1\u63a5\u53e3&#xff0c;\u7528\u4e8e\u5b9e\u73b0TCP\/IP\u8fde\u63a5\u7684\u5efa\u7acb\u3001\u6570\u636e\u7684\u53d1\u9001\u4e0e\u63a5\u6536\u3002 threading \u6a21\u5757\u7528\u4e8e\u5b9e\u73b0\u591a\u7ebf\u7a0b\u5e76\u53d1&#xff0c;\u5305\u62ec\u670d\u52a1\u7aef\u63a5\u6536\u5ba2\u6237\u7aef\u8fde\u63a5\u7684\u7ebf\u7a0b\u3001\u5904\u7406\u6bcf\u4e2a\u5ba2\u6237\u7aef\u901a\u4fe1\u7684\u7ebf\u7a0b&#xff0c;\u4ee5\u53ca\u5ba2\u6237\u7aef\u63a5\u6536\u670d\u52a1\u7aef\u6570\u636e\u7684\u7ebf\u7a0b&#xff0c;\u786e\u4fdd\u4e86\u7cfb\u7edf\u5728\u7f51\u7edc\u901a\u4fe1\u8fc7\u7a0b\u4e2d\u7684\u54cd\u5e94\u6027\u548c\u5e76\u53d1\u5904\u7406\u80fd\u529b\u3002<\/li>\n<li style=\"text-align:justify\">\u6570\u636e\u5e8f\u5217\u5316&#xff1a; Python\u5185\u7f6e\u7684 json \u6a21\u5757 json \u6a21\u5757\u7528\u4e8e\u5c06\u7ed3\u6784\u5316\u7684\u6570\u636e&#xff08;Python\u5b57\u5178&#xff09;\u5e8f\u5217\u5316\u4e3aJSON\u5b57\u7b26\u4e32\u8fdb\u884c\u7f51\u7edc\u4f20\u8f93&#xff0c;\u5e76\u5728\u63a5\u6536\u7aef\u53cd\u5e8f\u5217\u5316\u4e3aPython\u5bf9\u8c61\u3002JSON\u683c\u5f0f\u5177\u6709\u826f\u597d\u7684\u53ef\u8bfb\u6027\u548c\u8de8\u8bed\u8a00\u517c\u5bb9\u6027&#xff0c;\u9002\u5408\u4f5c\u4e3a\u5e94\u7528\u5c42\u6570\u636e\u4ea4\u6362\u7684\u683c\u5f0f\u3002<\/li>\n<li style=\"text-align:justify\">\u65e5\u5fd7\u8bb0\u5f55&#xff1a; Python\u5185\u7f6e\u7684 logging \u6a21\u5757 logging \u6a21\u5757\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u65e5\u5fd7\u8bb0\u5f55\u529f\u80fd&#xff0c;\u53ef\u4ee5\u914d\u7f6e\u4e0d\u540c\u7ea7\u522b\u7684\u65e5\u5fd7\u8f93\u51fa\u5230\u63a7\u5236\u53f0\u3001\u6587\u4ef6\u6216\u5176\u4ed6\u76ee\u6807\u3002\u5728\u672c\u6b21\u8bbe\u8ba1\u4e2d&#xff0c;\u65e5\u5fd7\u4fe1\u606f\u540c\u65f6\u8f93\u51fa\u5230\u63a7\u5236\u53f0\u548c\u6587\u4ef6 tsrs_server_client.log&#xff0c;\u5e76\u540c\u6b65\u66f4\u65b0\u5230GUI\u7684\u65e5\u5fd7\u663e\u793a\u533a&#xff0c;\u4fbf\u4e8e\u7cfb\u7edf\u8fd0\u884c\u72b6\u6001\u7684\u76d1\u63a7\u548c\u95ee\u9898\u6392\u67e5\u3002<\/li>\n<li style=\"text-align:justify\">\u65f6\u95f4\u5904\u7406&#xff1a; Python\u5185\u7f6e\u7684 datetime \u6a21\u5757 datetime \u6a21\u5757\u7528\u4e8e\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u5bf9\u8c61&#xff0c;\u4fbf\u4e8e\u9650\u901f\u547d\u4ee4\u4e2d\u751f\u6548\u65f6\u95f4\u3001\u5931\u6548\u65f6\u95f4\u7684\u8bbe\u7f6e\u3001\u6bd4\u8f83\u548c\u683c\u5f0f\u5316\u3002<\/li>\n<li style=\"text-align:justify\">\u552f\u4e00ID\u751f\u6210&#xff1a; Python\u5185\u7f6e\u7684 uuid \u6a21\u5757 uuid \u6a21\u5757\u7528\u4e8e\u751f\u6210\u5168\u5c40\u552f\u4e00\u7684\u6807\u8bc6\u7b26&#xff08;UUID&#xff09;&#xff0c;\u786e\u4fdd\u6bcf\u4e2aTSR\u5bf9\u8c61\u7684ID\u72ec\u4e00\u65e0\u4e8c\u3002<\/li>\n<\/ul>\n<h3 style=\"margin-left:0px;margin-right:0px;text-align:justify\"><span style=\"color:#0f4761\">5.2. GUI\u754c\u9762\u8bbe\u8ba1<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u7cfb\u7edf\u5305\u542b\u4e24\u4e2a\u72ec\u7acb\u7684GUI\u754c\u9762&#xff1a;\u670d\u52a1\u7aefGUI&#xff08;TSRS\u7ba1\u7406\u4e2d\u5fc3&#xff09;\u548c\u5ba2\u6237\u7aefGUI&#xff08;\u5217\u8f66\u8fd0\u884c\u7ec8\u7aef&#xff09;&#xff0c;\u5b83\u4eec\u901a\u8fc7TCP\/IP\u534f\u8bae\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">5.2.1. \u670d\u52a1\u7aefGUI<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">ServerGUI \u7c7b&#xff1a; \u6a21\u62dfTSRS\u7ef4\u62a4\u7ec8\u7aef&#xff08;TSRM&#xff09;\u529f\u80fd\u3002<\/p>\n<ul>\n<li style=\"text-align:justify\">\u5e03\u5c40&#xff1a; \u91c7\u7528 QVBoxLayout \u4f5c\u4e3a\u4e3b\u5e03\u5c40&#xff0c;\u81ea\u4e0a\u800c\u4e0b\u4f9d\u6b21\u4e3a&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u4e34\u65f6\u9650\u901f\u5217\u8868 (QTableView)&#xff1a; \u6838\u5fc3\u663e\u793a\u533a\u57df&#xff0c;\u901a\u8fc7 TSRTableModel \u5c55\u793a\u6240\u6709\u4e34\u65f6\u9650\u901f\u547d\u4ee4\u7684\u8be6\u7ec6\u4fe1\u606f&#xff0c;\u5305\u62ec\u7f16\u53f7\u3001\u8c03\u5ea6\u547d\u4ee4\u53f7\u3001\u7ebf\u8def\u3001\u9650\u901f\u503c\u3001\u751f\u6548\/\u5931\u6548\u65f6\u95f4\u3001\u72b6\u6001\u3001\u64cd\u4f5c\u5458\u7b49\u3002\u652f\u6301\u5355\u884c\u9009\u62e9\u3002<\/li>\n<li style=\"text-align:justify\">\u64cd\u4f5c\u6309\u94ae\u533a (QHBoxLayout)&#xff1a; \u5305\u542b\u201c\u65b0\u5efa\u9650\u901f\u201d\u3001\u201c\u7f16\u8f91\u9650\u901f\u201d\u3001\u201c\u4e0b\u8fbe\u9650\u901f\u201d\u3001\u201c\u53d6\u6d88\u9650\u901f\u201d\u3001\u201c\u5220\u9664\u9650\u901f\u201d\u3001\u201c\u5237\u65b0\u5217\u8868\u201d\u7b49\u6309\u94ae&#xff0c;\u63d0\u4f9b\u5bf9\u9650\u901f\u547d\u4ee4\u7684\u589e\u5220\u6539\u67e5\u53ca\u72b6\u6001\u7ba1\u7406\u529f\u80fd\u3002<\/li>\n<li style=\"text-align:justify\">\u5df2\u8fde\u63a5\u5ba2\u6237\u7aef\u5217\u8868 (QListWidget)&#xff1a; \u5b9e\u65f6\u663e\u793a\u5f53\u524d\u4e0eTSRS\u670d\u52a1\u5668\u5efa\u7acb\u8fde\u63a5\u7684\u6240\u6709\u5ba2\u6237\u7aef\u7684IP\u5730\u5740\u548c\u7aef\u53e3&#xff0c;\u4fbf\u4e8e\u76d1\u63a7\u8fde\u63a5\u72b6\u6001\u3002<\/li>\n<li style=\"text-align:justify\">\u64cd\u4f5c\u65e5\u5fd7 (QTextBrowser)&#xff1a; \u663e\u793a\u670d\u52a1\u7aef\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u7684\u5404\u7c7b\u65e5\u5fd7\u4fe1\u606f&#xff0c;\u5305\u62ec\u5ba2\u6237\u7aef\u8fde\u63a5\/\u65ad\u5f00\u3001\u547d\u4ee4\u6536\u53d1\u3001\u64cd\u4f5c\u6267\u884c\u7ed3\u679c\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u72b6\u6001\u680f&#xff1a; \u663e\u793a\u670d\u52a1\u5668\u7684\u8fd0\u884c\u72b6\u6001&#xff08;\u201c\u670d\u52a1\u7aef\u8fd0\u884c\u4e2d\u201d\u3001\u201c\u670d\u52a1\u7aef\u5df2\u505c\u6b62\u201d&#xff09;\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">TSRDetailDialog \u7c7b&#xff1a; \u7528\u4e8e\u9650\u901f\u547d\u4ee4\u7684\u521b\u5efa\u548c\u7f16\u8f91\u3002<\/p>\n<ul>\n<li style=\"text-align:justify\">\u5e03\u5c40&#xff1a; \u91c7\u7528 QFormLayout \u5e03\u5c40&#xff0c;\u5de6\u4fa7\u4e3a\u6807\u7b7e&#xff0c;\u53f3\u4fa7\u4e3a\u8f93\u5165\u63a7\u4ef6\u3002<\/li>\n<li style=\"text-align:justify\">\u8f93\u5165\u63a7\u4ef6&#xff1a; \u5305\u542b QLineEdit&#xff08;\u6587\u672c\u8f93\u5165&#xff09;\u3001QComboBox&#xff08;\u4e0b\u62c9\u9009\u62e9&#xff0c;\u90e8\u5206\u53ef\u7f16\u8f91&#xff09;\u3001QDateTimeEdit&#xff08;\u65e5\u671f\u65f6\u95f4\u9009\u62e9&#xff09;\u7b49\u3002<\/li>\n<li style=\"text-align:justify\">\u52a8\u6001\u8c03\u6574&#xff1a; \u201c\u7ebf\u8def\u7c7b\u578b\u201d\u9009\u62e9\u6846&#xff08;QComboBox&#xff09;\u4f1a\u6839\u636e\u9009\u62e9\u201c\u6b63\u7ebf\u201d\u6216\u201c\u4fa7\u7ebf\u201d\u52a8\u6001\u663e\u793a\/\u9690\u85cf\u5e76\u8bbe\u7f6e\u76f8\u5173\u5b57\u6bb5\u7684\u5c5e\u6027&#xff08;\u5982\u4fa7\u7ebf\u91cc\u7a0b\u6807\u56fa\u5b9a\u4e3a\u53ea\u8bfb&#xff0c;\u9650\u901f\u503c\u8303\u56f4\u9650\u5236&#xff09;\u3002\u8fd9\u4f53\u73b0\u4e86\u89c4\u8303\u4e2d\u5bf9\u6b63\u7ebf\u548c\u4fa7\u7ebf\u9650\u901f\u4e0d\u540c\u8bbe\u7f6e\u89c4\u5219\u7684\u5b9e\u73b0\u3002<\/li>\n<li style=\"text-align:justify\">\u6821\u9a8c\u63d0\u793a&#xff1a; \u5728\u201c\u9650\u901f\u503c\u201d\u8f93\u5165\u65f6&#xff0c;\u4f1a\u6839\u636e\u7ebf\u8def\u7c7b\u578b\u548c\u8f93\u5165\u503c\u8fdb\u884c\u5b9e\u65f6\u6821\u9a8c&#xff0c;\u5e76\u53ef\u80fd\u901a\u8fc7\u6837\u5f0f&#xff08;\u5982\u7ea2\u8272\u8fb9\u6846&#xff09;\u7ed9\u51fa\u63d0\u793a\u3002<\/li>\n<\/ul>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">5.2.2. \u5ba2\u6237\u7aefGUI<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">ClientGUI \u7c7b&#xff1a; \u6a21\u62df\u5217\u8f66\u8fd0\u884c\u7ec8\u7aef\u6216RBC\/TCC\u3002<\/p>\n<ul>\n<li style=\"text-align:justify\">\u5e03\u5c40&#xff1a; \u91c7\u7528 QVBoxLayout \u4f5c\u4e3a\u4e3b\u5e03\u5c40\u3002\n<ul>\n<li style=\"text-align:justify\">\u5f53\u524d\u6709\u6548\u9650\u901f\u5217\u8868 (QTableWidget)&#xff1a; \u663e\u793a\u4eceTSRS\u670d\u52a1\u5668\u63a5\u6536\u5230\u7684\u3001\u4e14\u5f53\u524d\u5904\u4e8e\u201c\u5df2\u4e0b\u8fbe\u201d\u72b6\u6001\u5e76\u5904\u4e8e\u751f\u6548\u65f6\u95f4\u8303\u56f4\u5185\u7684\u9650\u901f\u547d\u4ee4\u3002\u7b80\u5316\u4e86\u663e\u793a\u5b57\u6bb5&#xff0c;\u805a\u7126\u4e8e\u5217\u8f66\u8fd0\u884c\u6240\u9700\u7684\u6838\u5fc3\u4fe1\u606f&#xff08;\u5982\u8c03\u5ea6\u547d\u4ee4\u53f7\u3001\u7ebf\u8def\u3001\u91cc\u7a0b\u6807\u3001\u9650\u901f\u503c\u3001\u72b6\u6001&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u63a7\u5236\u6309\u94ae\u533a (QHBoxLayout)&#xff1a; \u5305\u542b\u201c\u8fde\u63a5\u670d\u52a1\u5668\u201d\u3001\u201c\u65ad\u5f00\u8fde\u63a5\u201d\u3001\u201c\u5237\u65b0\u9650\u901f\u4fe1\u606f\u201d\u7b49\u6309\u94ae&#xff0c;\u7528\u4e8e\u63a7\u5236\u4e0e\u670d\u52a1\u5668\u7684\u8fde\u63a5\u4ee5\u53ca\u624b\u52a8\u8bf7\u6c42\u9650\u901f\u4fe1\u606f\u3002<\/li>\n<li style=\"text-align:justify\">\u5ba2\u6237\u7aef\u65e5\u5fd7 (QTextBrowser)&#xff1a; \u663e\u793a\u5ba2\u6237\u7aef\u81ea\u8eab\u7684\u8fde\u63a5\u72b6\u6001\u3001\u6d88\u606f\u6536\u53d1\u548c\u64cd\u4f5c\u65e5\u5fd7\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u72b6\u6001\u680f&#xff1a; \u663e\u793a\u4e0e\u670d\u52a1\u5668\u7684\u8fde\u63a5\u72b6\u6001&#xff08;\u201c\u5df2\u8fde\u63a5\u201d\u3001\u201c\u672a\u8fde\u63a5\u201d&#xff09;\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6574\u4f53GUI\u8bbe\u8ba1\u529b\u6c42\u7b80\u6d01\u660e\u4e86&#xff0c;\u529f\u80fd\u5206\u533a\u6e05\u6670&#xff0c;\u65b9\u4fbf\u7528\u6237\u8fdb\u884c\u64cd\u4f5c\u548c\u76d1\u63a7\u7cfb\u7edf\u72b6\u6001\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">5.3. \u529f\u80fd\u6d4b\u8bd5\u4e0e\u9a8c\u8bc1<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e3a\u4e86\u9a8c\u8bc1 TSRSui.py \u5b9e\u73b0\u7684\u529f\u80fd\u7b26\u5408\u300a\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668\u6280\u672f\u89c4\u8303\u300b\u7684\u8981\u6c42&#xff0c;\u5e76\u786e\u4fdd\u7cfb\u7edf\u7a33\u5b9a\u53ef\u9760&#xff0c;\u6211\u4eec\u8fdb\u884c\u4e86\u4e00\u7cfb\u5217\u529f\u80fd\u6d4b\u8bd5\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6d4b\u8bd5\u73af\u5883&#xff1a;<\/p>\n<ul>\n<li style=\"text-align:justify\">\u64cd\u4f5c\u7cfb\u7edf&#xff1a;Windows 10 \/ macOS Ventura<\/li>\n<li style=\"text-align:justify\">Python\u7248\u672c&#xff1a;3.9<\/li>\n<li style=\"text-align:justify\">PyQt\u7248\u672c&#xff1a;5.15.9<\/li>\n<li style=\"text-align:justify\">\u6d4b\u8bd5\u65b9\u5f0f&#xff1a;\u624b\u52a8\u64cd\u4f5cGUI\u754c\u9762&#xff0c;\u89c2\u5bdf\u7cfb\u7edf\u884c\u4e3a\u548c\u65e5\u5fd7\u8f93\u51fa\u3002<\/li>\n<\/ul>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">5.3.1. \u9650\u901f\u521b\u5efa\u4e0e\u6821\u9a8c\u6d4b\u8bd5<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u76ee\u7684&#xff1a; \u9a8c\u8bc1\u7cfb\u7edf\u80fd\u5426\u6b63\u786e\u521b\u5efa\u9650\u901f\u547d\u4ee4&#xff0c;\u5e76\u4e25\u683c\u6267\u884c\u89c4\u8303\u4e2d\u5bf9\u53c2\u6570\u7684\u6821\u9a8c\u89c4\u5219\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6d4b\u8bd5\u6b65\u9aa4\u4e0e\u7ed3\u679c&#xff1a;<\/p>\n<li style=\"text-align:justify\">\u65b0\u5efa\u6b63\u7ebf\u9650\u901f&#xff08;\u5408\u89c4&#xff09;&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5728\u670d\u52a1\u7aefGUI\u70b9\u51fb\u201c\u65b0\u5efa\u9650\u901f\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u8f93\u5165\u5408\u89c4\u7684\u6b63\u7ebf\u9650\u901f\u4fe1\u606f&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u8c03\u5ea6\u547d\u4ee4\u53f7&#xff1a;2023003<\/li>\n<li style=\"text-align:justify\">\u7ebf\u8def\u7c7b\u578b&#xff1a;\u6b63\u7ebf<\/li>\n<li style=\"text-align:justify\">\u7ebf\u8def&#xff1a;\u4eac\u5e7f\u9ad8\u94c1<\/li>\n<li style=\"text-align:justify\">\u80a1\u9053&#xff1a;\u4e0a\u884c\u6b63\u7ebf<\/li>\n<li style=\"text-align:justify\">\u8d77\u59cb\u91cc\u7a0b\u6807&#xff1a;K200&#043;000<\/li>\n<li style=\"text-align:justify\">\u8d77\u59cb\u95ed\u585e\u5206\u533a&#xff1a;B10<\/li>\n<li style=\"text-align:justify\">\u7ec8\u70b9\u91cc\u7a0b\u6807&#xff1a;K201&#043;500<\/li>\n<li style=\"text-align:justify\">\u7ec8\u70b9\u95ed\u585e\u5206\u533a&#xff1a;B12<\/li>\n<li style=\"text-align:justify\">\u9650\u901f\u503c&#xff1a;160 (\u9009\u62e9\u9884\u8bbe\u503c)<\/li>\n<li style=\"text-align:justify\">\u751f\u6548\u65f6\u95f4&#xff1a;\u5f53\u524d\u65f6\u95f4\u524d5\u5206\u949f<\/li>\n<li style=\"text-align:justify\">\u5931\u6548\u65f6\u95f4&#xff1a;\u5f53\u524d\u65f6\u95f4\u540e1\u5929<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u70b9\u51fb\u201c\u4fdd\u5b58\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u9650\u901f\u521b\u5efa\u6210\u529f&#xff0c;\u663e\u793a\u5728\u8868\u683c\u4e2d&#xff0c;\u72b6\u6001\u4e3a\u201c\u62df\u5b9a\u201d\u3002\u65e5\u5fd7\u8f93\u51fa\u201cTSR\u521b\u5efa\u6210\u529f\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u65b0\u5efa\u6b63\u7ebf\u9650\u901f&#xff08;\u4e0d\u5408\u89c4\u9650\u901f\u503c &#8211; \u8d85\u51fa\u8303\u56f4&#xff09;&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u91cd\u590d\u6b65\u9aa41&#xff0c;\u4f46\u9650\u901f\u503c\u8f93\u516530\u6216300\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u5f39\u51fa\u9519\u8bef\u63d0\u793a\u201c\u6b63\u7ebf\u9650\u901f\u503c\u5fc5\u987b\u5728 45 \u5230 250 \u4e4b\u95f4\u3002\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u65b0\u5efa\u6b63\u7ebf\u9650\u901f&#xff08;\u4e0d\u5408\u89c4\u9650\u901f\u503c &#8211; \u975e\u63a8\u8350\u6863\u4f4d\u4f46\u8303\u56f4\u5408\u89c4&#xff09;&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u91cd\u590d\u6b65\u9aa41&#xff0c;\u4f46\u9650\u901f\u503c\u8f93\u516570\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u5f39\u51fa\u9519\u8bef\u63d0\u793a\u201c\u6b63\u7ebf\u9650\u901f\u503c\u63a8\u8350\u4e3a 45,60,80,\u2026 \u4e2d\u7684\u4e00\u6863\u3002\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u65b0\u5efa\u4fa7\u7ebf\u9650\u901f&#xff08;\u5408\u89c4&#xff09;&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5728\u670d\u52a1\u7aefGUI\u70b9\u51fb\u201c\u65b0\u5efa\u9650\u901f\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u9009\u62e9\u7ebf\u8def\u7c7b\u578b&#xff1a;\u4fa7\u7ebf\u3002<\/li>\n<li style=\"text-align:justify\">\u8f93\u5165\u5408\u89c4\u7684\u4fa7\u7ebf\u9650\u901f\u4fe1\u606f&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u8c03\u5ea6\u547d\u4ee4\u53f7&#xff1a;2023004<\/li>\n<li style=\"text-align:justify\">\u7ebf\u8def&#xff1a;XX\u8f66\u7ad9<\/li>\n<li style=\"text-align:justify\">\u80a1\u9053&#xff1a;\u4e0b\u884c\u4fa7\u7ebf<\/li>\n<li style=\"text-align:justify\">\u8d77\u59cb\u91cc\u7a0b\u6807&#xff1a;K0000&#043;000 (\u81ea\u52a8\u586b\u5145&#xff0c;\u53ea\u8bfb)<\/li>\n<li style=\"text-align:justify\">\u7ec8\u70b9\u91cc\u7a0b\u6807&#xff1a;K9999&#043;999 (\u81ea\u52a8\u586b\u5145&#xff0c;\u53ea\u8bfb)<\/li>\n<li style=\"text-align:justify\">\u8f66\u7ad9\u7f16\u53f7&#xff1a;\u4e0a\u6d77\u8679\u6865\u7ad9<\/li>\n<li style=\"text-align:justify\">\u9650\u901f\u503c&#xff1a;45 (\u9009\u62e9\u9884\u8bbe\u503c)<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u70b9\u51fb\u201c\u4fdd\u5b58\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u9650\u901f\u521b\u5efa\u6210\u529f&#xff0c;\u663e\u793a\u5728\u8868\u683c\u4e2d&#xff0c;\u72b6\u6001\u4e3a\u201c\u62df\u5b9a\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u65b0\u5efa\u4fa7\u7ebf\u9650\u901f&#xff08;\u4e0d\u5408\u89c4\u9650\u901f\u503c &#8211; \u975e45\/80&#xff09;&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u91cd\u590d\u6b65\u9aa44&#xff0c;\u4f46\u9650\u901f\u503c\u9009\u62e960\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u5f39\u51fa\u9519\u8bef\u63d0\u793a\u201c\u4fa7\u7ebf\u9650\u901f\u503c\u5fc5\u987b\u4e3a 45,80 \u4e2d\u7684\u4e00\u6863\u3002\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u65f6\u95f4\u903b\u8f91\u6821\u9a8c&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u65b0\u5efa\u9650\u901f&#xff0c;\u8bbe\u7f6e\u751f\u6548\u65f6\u95f4\u665a\u4e8e\u5931\u6548\u65f6\u95f4\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u5f39\u51fa\u9519\u8bef\u63d0\u793a\u201c\u751f\u6548\u65f6\u95f4\u5fc5\u987b\u65e9\u4e8e\u5931\u6548\u65f6\u95f4\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<\/ul>\n<\/li>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">5.3.2. \u9650\u901f\u751f\u547d\u5468\u671f\u7ba1\u7406\u6d4b\u8bd5<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u76ee\u7684&#xff1a; \u9a8c\u8bc1\u9650\u901f\u547d\u4ee4\u5728\u201c\u62df\u5b9a\u201d\u3001\u201c\u5df2\u4e0b\u8fbe\u201d\u3001\u201c\u5df2\u53d6\u6d88\u201d\u3001\u201c\u5df2\u5931\u6548\u201d\u3001\u201c\u5220\u9664\u201d\u7b49\u72b6\u6001\u95f4\u7684\u8f6c\u6362\u903b\u8f91\u662f\u5426\u7b26\u5408\u89c4\u8303\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6d4b\u8bd5\u6b65\u9aa4\u4e0e\u7ed3\u679c&#xff1a;<\/p>\n<li style=\"text-align:justify\">\u7f16\u8f91\u201c\u62df\u5b9a\u201d\u72b6\u6001\u9650\u901f&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u9009\u62e9\u4e00\u4e2a\u521a\u521b\u5efa\u7684\u201c\u62df\u5b9a\u201d\u72b6\u6001\u9650\u901f\u3002<\/li>\n<li style=\"text-align:justify\">\u70b9\u51fb\u201c\u7f16\u8f91\u9650\u901f\u201d&#xff0c;\u4fee\u6539\u90e8\u5206\u4fe1\u606f&#xff08;\u5982\u9650\u901f\u503c&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u6210\u529f\u4fee\u6539&#xff0c;\u72b6\u6001\u4e0d\u53d8\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u4e0b\u8fbe\u201c\u62df\u5b9a\u201d\u72b6\u6001\u9650\u901f&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u9009\u62e9\u4e00\u4e2a\u201c\u62df\u5b9a\u201d\u72b6\u6001\u9650\u901f\u3002<\/li>\n<li style=\"text-align:justify\">\u70b9\u51fb\u201c\u4e0b\u8fbe\u9650\u901f\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u72b6\u6001\u53d8\u4e3a\u201c\u5df2\u4e0b\u8fbe\u201d\u3002\u5ba2\u6237\u7aefGUI\u968f\u5373\u66f4\u65b0&#xff0c;\u663e\u793a\u8be5\u9650\u901f&#xff08;\u5982\u679c\u65f6\u95f4\u5728\u751f\u6548\u8303\u56f4\u5185&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u7f16\u8f91\u201c\u5df2\u4e0b\u8fbe\u201d\u72b6\u6001\u9650\u901f&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u9009\u62e9\u4e00\u4e2a\u201c\u5df2\u4e0b\u8fbe\u201d\u72b6\u6001\u9650\u901f\u3002<\/li>\n<li style=\"text-align:justify\">\u70b9\u51fb\u201c\u7f16\u8f91\u9650\u901f\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u5f39\u51fa\u8b66\u544a\u201c\u53ea\u80fd\u7f16\u8f91\u2019\u62df\u5b9a\u2019\u72b6\u6001\u7684\u9650\u901f&#xff01;\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f&#xff08;\u7b26\u5408\u89c4\u8303 5.3.1.4&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u53d6\u6d88\u201c\u5df2\u4e0b\u8fbe\u201d\u72b6\u6001\u9650\u901f&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u9009\u62e9\u4e00\u4e2a\u201c\u5df2\u4e0b\u8fbe\u201d\u72b6\u6001\u9650\u901f\u3002<\/li>\n<li style=\"text-align:justify\">\u70b9\u51fb\u201c\u53d6\u6d88\u9650\u901f\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u72b6\u6001\u53d8\u4e3a\u201c\u5df2\u53d6\u6d88\u201d\u3002\u5ba2\u6237\u7aefGUI\u968f\u5373\u66f4\u65b0&#xff0c;\u4e0d\u518d\u663e\u793a\u8be5\u9650\u901f&#xff08;\u56e0\u5176\u4e0d\u518d\u662f\u6709\u6548\u72b6\u6001&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f&#xff08;\u7b26\u5408\u89c4\u8303 5.3.1.7&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u4e0b\u8fbe\/\u53d6\u6d88\u201c\u5df2\u53d6\u6d88\u201d\u72b6\u6001\u9650\u901f&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u9009\u62e9\u4e00\u4e2a\u201c\u5df2\u53d6\u6d88\u201d\u72b6\u6001\u9650\u901f\u3002<\/li>\n<li style=\"text-align:justify\">\u5c1d\u8bd5\u201c\u4e0b\u8fbe\u9650\u901f\u201d\u6216\u201c\u53d6\u6d88\u9650\u901f\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u5f39\u51fa\u8b66\u544a&#xff0c;\u4e0d\u5141\u8bb8\u64cd\u4f5c\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u5220\u9664\u9650\u901f&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5220\u9664\u201c\u62df\u5b9a\u201d\u3001\u201c\u5df2\u53d6\u6d88\u201d\u3001\u201c\u5df2\u5931\u6548\u201d\u72b6\u6001\u7684\u9650\u901f\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u6210\u529f\u5220\u9664&#xff0c;\u4ece\u5217\u8868\u4e2d\u79fb\u9664\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f&#xff08;\u7b26\u5408\u89c4\u8303 5.3.1.3&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u5c1d\u8bd5\u5220\u9664\u201c\u5df2\u4e0b\u8fbe\u201d\u72b6\u6001\u7684\u9650\u901f\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u5f39\u51fa\u8b66\u544a&#xff0c;\u4e0d\u5141\u8bb8\u5220\u9664\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u81ea\u52a8\u5931\u6548\u5224\u5b9a&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u521b\u5efa\u4e00\u4e2a\u9650\u901f&#xff0c;\u8bbe\u7f6e\u5176\u5931\u6548\u65f6\u95f4\u4e3a\u5f53\u524d\u65f6\u95f4\u540e1\u5206\u949f\u3002<\/li>\n<li style=\"text-align:justify\">\u7b49\u5f851\u5206\u949f\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u8be5\u9650\u901f\u7684\u72b6\u6001\u81ea\u52a8\u4ece\u201c\u5df2\u4e0b\u8fbe\u201d\u53d8\u4e3a\u201c\u5df2\u5931\u6548\u201d\u3002\u5ba2\u6237\u7aefGUI\u968f\u5373\u66f4\u65b0&#xff0c;\u4e0d\u518d\u663e\u793a\u8be5\u9650\u901f\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f&#xff08;\u7b26\u5408\u89c4\u8303 5.5.1.4, 5.5.1.5&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">5.3.3. \u901a\u4fe1\u4e0e\u6570\u636e\u540c\u6b65\u6d4b\u8bd5<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u76ee\u7684&#xff1a; \u9a8c\u8bc1\u670d\u52a1\u7aef\u4e0e\u5ba2\u6237\u7aef\u4e4b\u95f4\u7684\u901a\u4fe1\u8fde\u63a5\u3001\u6d88\u606f\u6536\u53d1\u548c\u6570\u636e\u540c\u6b65\u529f\u80fd\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6d4b\u8bd5\u6b65\u9aa4\u4e0e\u7ed3\u679c&#xff1a;<\/p>\n<li style=\"text-align:justify\">\u5ba2\u6237\u7aef\u8fde\u63a5\u4e0e\u521d\u59cb\u6570\u636e\u5237\u65b0&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u542f\u52a8\u670d\u52a1\u7aefGUI\u3002<\/li>\n<li style=\"text-align:justify\">\u542f\u52a8\u5ba2\u6237\u7aefGUI&#xff0c;\u70b9\u51fb\u201c\u8fde\u63a5\u670d\u52a1\u5668\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u5ba2\u6237\u7aef\u72b6\u6001\u680f\u663e\u793a\u201c\u5df2\u8fde\u63a5\u201d&#xff0c;\u65e5\u5fd7\u663e\u793a\u8fde\u63a5\u6210\u529f\u3002\u5ba2\u6237\u7aef\u8868\u683c\u7acb\u5373\u663e\u793a\u670d\u52a1\u7aef\u4e2d\u6240\u6709\u201c\u5df2\u4e0b\u8fbe\u201d\u4e14\u5f53\u524d\u6709\u6548\u7684\u9650\u901f\u4fe1\u606f\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f&#xff08;\u7b26\u5408\u89c4\u8303 5.5.1.6 \u5bf9\u8fde\u63a5\u6062\u590d\u5237\u65b0\u7684\u8981\u6c42&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u670d\u52a1\u7aef\u6570\u636e\u66f4\u65b0\u65f6\u7684\u5e7f\u64ad&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5728\u670d\u52a1\u7aefGUI\u4e0a\u65b0\u5efa\u3001\u4e0b\u8fbe\u3001\u53d6\u6d88\u6216\u5220\u9664\u9650\u901f\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u5ba2\u6237\u7aefGUI\u7684\u8868\u683c\u81ea\u52a8\u5237\u65b0&#xff0c;\u6839\u636e\u9650\u901f\u7684\u5b9e\u9645\u72b6\u6001&#xff08;\u662f\u5426\u6709\u6548&#xff09;\u8fdb\u884c\u589e\u5220\u6539\u3002\u670d\u52a1\u7aef\u548c\u5ba2\u6237\u7aef\u65e5\u5fd7\u5747\u6709\u76f8\u5173\u4fe1\u606f\u8f93\u51fa\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u5ba2\u6237\u7aef\u624b\u52a8\u5237\u65b0&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5728\u5ba2\u6237\u7aefGUI\u70b9\u51fb\u201c\u5237\u65b0\u9650\u901f\u4fe1\u606f\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u5ba2\u6237\u7aef\u5411\u670d\u52a1\u7aef\u53d1\u9001 GET_ALL_TSRS \u8bf7\u6c42&#xff0c;\u670d\u52a1\u7aef\u56de\u5e94 TSRS_UPDATE \u6d88\u606f&#xff0c;\u5ba2\u6237\u7aef\u8868\u683c\u6570\u636e\u66f4\u65b0&#xff08;\u5373\u4f7f\u670d\u52a1\u7aef\u6ca1\u6709\u6570\u636e\u53d8\u5316&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u5ba2\u6237\u7aef\u65ad\u5f00\u4e0e\u91cd\u8fde&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5728\u5ba2\u6237\u7aefGUI\u70b9\u51fb\u201c\u65ad\u5f00\u8fde\u63a5\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u5ba2\u6237\u7aef\u72b6\u6001\u680f\u663e\u793a\u201c\u672a\u8fde\u63a5\u201d&#xff0c;\u65e5\u5fd7\u663e\u793a\u65ad\u5f00\u6210\u529f\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<li style=\"text-align:justify\">\u518d\u6b21\u70b9\u51fb\u201c\u8fde\u63a5\u670d\u52a1\u5668\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u91cd\u65b0\u8fde\u63a5\u6210\u529f&#xff0c;\u5e76\u518d\u6b21\u5237\u65b0\u9650\u901f\u6570\u636e\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u6a21\u62df\u7f51\u7edc\u4e2d\u65ad&#xff08;\u4f8b\u5982&#xff0c;\u5173\u95ed\u670d\u52a1\u7aef&#xff0c;\u518d\u542f\u52a8&#xff09;&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5728\u5ba2\u6237\u7aef\u5df2\u8fde\u63a5\u72b6\u6001\u4e0b&#xff0c;\u5173\u95ed\u670d\u52a1\u7aefGUI&#xff08;\u6a21\u62df\u670d\u52a1\u5668\u79bb\u7ebf&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u5ba2\u6237\u7aef\u65e5\u5fd7\u663e\u793a\u8fde\u63a5\u91cd\u7f6e\u6216\u5f02\u5e38&#xff0c;\u72b6\u6001\u680f\u53d8\u4e3a\u201c\u672a\u8fde\u63a5\u201d&#xff0c;\u5e76\u5f00\u59cb\u81ea\u52a8\u5c1d\u8bd5\u91cd\u8fde&#xff08;\u6bcf3\u79d2\u4e00\u6b21&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<li style=\"text-align:justify\">\u91cd\u65b0\u542f\u52a8\u670d\u52a1\u7aefGUI\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u5ba2\u6237\u7aef\u65e5\u5fd7\u663e\u793a\u91cd\u8fde\u6210\u529f&#xff0c;\u5e76\u91cd\u65b0\u5237\u65b0\u9650\u901f\u6570\u636e\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f&#xff08;\u7b26\u5408\u89c4\u8303 5.5.1.6 \u4e2d\u65ad\u6062\u590d\u673a\u5236&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<h4 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">5.3.4. \u5f02\u5e38\u5904\u7406\u6d4b\u8bd5<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u76ee\u7684&#xff1a; \u9a8c\u8bc1\u7cfb\u7edf\u5728\u9762\u5bf9\u5f02\u5e38\u60c5\u51b5&#xff08;\u5982\u65e0\u6548\u8f93\u5165\u3001\u8fde\u63a5\u5f02\u5e38&#xff09;\u65f6\u7684\u5065\u58ee\u6027\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6d4b\u8bd5\u6b65\u9aa4\u4e0e\u7ed3\u679c&#xff1a;<\/p>\n<li style=\"text-align:justify\">\u65e0\u6548JSON\u6d88\u606f&#xff08;\u901a\u8fc7\u6a21\u62df\u53d1\u9001&#xff09;&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5728\u6a21\u62df\u73af\u5883\u4e2d&#xff0c;\u6784\u9020\u4e00\u4e2a\u975eJSON\u683c\u5f0f\u6216JSON\u683c\u5f0f\u9519\u8bef\u7684\u5b57\u8282\u6d41\u53d1\u9001\u7ed9\u670d\u52a1\u5668\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u670d\u52a1\u7aef\u65e5\u5fd7\u663e\u793a\u201c\u6570\u636e\u4e0d\u662f\u6709\u6548\u7684JSON\u201d\u6216\u201cJSON\u89e3\u6790\u9519\u8bef\u201d\u3002\u4e0d\u4f1a\u5bfc\u81f4\u670d\u52a1\u5668\u5d29\u6e83\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u9650\u901f\u503c\u975e\u6570\u5b57\u8f93\u5165&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5728\u65b0\u5efa\/\u7f16\u8f91\u9650\u901f\u5bf9\u8bdd\u6846\u4e2d&#xff0c;\u9650\u901f\u503c\u8f93\u5165\u975e\u6570\u5b57\u5b57\u7b26\u3002<\/li>\n<li style=\"text-align:justify\">\u9884\u671f\u7ed3\u679c&#xff1a; \u5f39\u51fa\u9519\u8bef\u63d0\u793a\u201c\u9650\u901f\u503c\u5fc5\u987b\u4e3a\u6709\u6548\u7684\u6570\u5b57\u3002\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u5b9e\u9645\u7ed3\u679c&#xff1a; \u7b26\u5408\u9884\u671f&#xff0c;\u5f97\u76ca\u4e8e QIntValidator \u548c int() \u8f6c\u6362\u7684\u6355\u83b7\u3002<\/li>\n<\/ul>\n<\/li>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u901a\u8fc7\u4ee5\u4e0a\u6d4b\u8bd5&#xff0c;\u6211\u4eec\u9a8c\u8bc1\u4e86 TSRSui.py \u5b9e\u73b0\u7684TSRS\u4eff\u771f\u7cfb\u7edf\u5728\u6838\u5fc3\u529f\u80fd\u548c\u901a\u4fe1\u65b9\u9762\u57fa\u672c\u7b26\u5408\u8bbe\u8ba1\u8981\u6c42\u548c\u300a\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668\u6280\u672f\u89c4\u8303\u300b\u7684\u90e8\u5206\u5173\u952e\u6761\u6587\u3002\u7cfb\u7edf\u80fd\u591f\u6709\u6548\u7ba1\u7406\u9650\u901f\u547d\u4ee4\u7684\u751f\u547d\u5468\u671f&#xff0c;\u5e76\u901a\u8fc7\u7f51\u7edc\u5c06\u9650\u901f\u4fe1\u606f\u5b9e\u65f6\u540c\u6b65\u5230\u5ba2\u6237\u7aef&#xff0c;\u4e14\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u5177\u5907\u4e86\u5f02\u5e38\u5904\u7406\u548c\u81ea\u52a8\u6062\u590d\u7684\u80fd\u529b\u3002<\/p>\n<hr \/>\n<h2 style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#0f4761\">\u7b2c 6 \u7ae0 \u603b\u7ed3\u4e0e\u5c55\u671b<\/span><\/h2>\n<h3 style=\"margin-left:0px;margin-right:0px;text-align:justify\"><span style=\"color:#0f4761\">6.1. \u7814\u7a76\u6210\u679c<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u672c\u6b21\u8bfe\u7a0b\u8bbe\u8ba1\u6210\u529f\u5730\u57fa\u4e8ePython\u548cPyQt5\u5b9e\u73b0\u4e86\u4e00\u4e2a\u7b80\u5316\u7684\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668&#xff08;TSRS&#xff09;\u4eff\u771f\u7cfb\u7edf\u3002\u901a\u8fc7\u6a21\u62df\u300a\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668\u6280\u672f\u89c4\u8303&#xff08;\u6682\u884c&#xff09;\u300b\u4e2d\u7684\u6838\u5fc3\u529f\u80fd\u548c\u8981\u6c42&#xff0c;\u6211\u4eec\u53d6\u5f97\u4e86\u4ee5\u4e0b\u4e3b\u8981\u6210\u679c&#xff1a;<\/p>\n<li style=\"text-align:justify\">\u6838\u5fc3\u4e1a\u52a1\u903b\u8f91\u5b9e\u73b0&#xff1a; \u6210\u529f\u6784\u5efa\u4e86 TSR \u6570\u636e\u6a21\u578b\u548c TSRManager \u7ba1\u7406\u6a21\u5757&#xff0c;\u5b9e\u73b0\u4e86\u4e34\u65f6\u9650\u901f\u547d\u4ee4\u7684\u521b\u5efa\u3001\u7f16\u8f91\u3001\u4e0b\u8fbe\u3001\u53d6\u6d88\u3001\u5220\u9664\u7b49\u751f\u547d\u5468\u671f\u7ba1\u7406\u529f\u80fd\u3002\u8fd9\u4e9b\u529f\u80fd\u4e25\u683c\u9075\u5faa\u4e86\u89c4\u8303\u4e2d\u5bf9\u9650\u901f\u8bbe\u7f6e\u89c4\u5219&#xff08;\u5305\u62ec\u6b63\u7ebf\/\u4fa7\u7ebf\u91cc\u7a0b\u6807\u3001\u9650\u901f\u503c\u6863\u4f4d\u3001\u65f6\u95f4\u903b\u8f91\u7b49&#xff09;\u548c\u64cd\u4f5c\u9650\u5236&#xff08;\u5982\u53ea\u5141\u8bb8\u7f16\u8f91\/\u5220\u9664\u201c\u62df\u5b9a\u201d\u72b6\u6001\u7684\u9650\u901f&#xff0c;\u53ea\u5141\u8bb8\u53d6\u6d88\u201c\u5df2\u4e0b\u8fbe\u201d\u72b6\u6001\u7684\u9650\u901f&#xff09;\u7684\u6821\u9a8c\u3002<\/li>\n<li style=\"text-align:justify\">\u81ea\u52a8\u72b6\u6001\u7ba1\u7406&#xff1a; \u5b9e\u73b0\u4e86\u5b9a\u65f6\u5668\u673a\u5236&#xff0c;\u80fd\u591f\u5468\u671f\u6027\u5730\u81ea\u52a8\u68c0\u67e5\u5e76\u66f4\u65b0\u8fc7\u671f\u9650\u901f\u547d\u4ee4\u7684\u72b6\u6001\u4e3a\u201c\u5df2\u5931\u6548\u201d&#xff0c;\u7b26\u5408\u89c4\u8303 5.5.1.4 \u548c 5.5.1.5 \u7684\u8981\u6c42&#xff0c;\u63d0\u9ad8\u4e86\u7cfb\u7edf\u81ea\u52a8\u5316\u6c34\u5e73\u3002<\/li>\n<li style=\"text-align:justify\">\u53ef\u9760\u901a\u4fe1\u673a\u5236&#xff1a; \u8bbe\u8ba1\u5e76\u5b9e\u73b0\u4e86\u57fa\u4e8eTCP\/IP\u7684\u5ba2\u6237\u7aef\/\u670d\u52a1\u7aef\u901a\u4fe1\u3002\u901a\u8fc7\u957f\u5ea6\u524d\u7f00\u548cJSON\u5c01\u88c5\u7684\u5e94\u7528\u5c42\u534f\u8bae&#xff0c;\u89e3\u51b3\u4e86\u6d88\u606f\u7c98\u5305\/\u5206\u5305\u95ee\u9898&#xff0c;\u5e76\u786e\u4fdd\u4e86\u6570\u636e\u4f20\u8f93\u7684\u7ed3\u6784\u5316\u548c\u53ef\u89e3\u6790\u6027\u3002\u670d\u52a1\u7aef\u91c7\u7528\u591a\u7ebf\u7a0b\u6a21\u578b&#xff0c;\u652f\u6301\u5e76\u53d1\u5904\u7406\u591a\u4e2a\u5ba2\u6237\u7aef\u8fde\u63a5\u3002<\/li>\n<li style=\"text-align:justify\">\u6570\u636e\u540c\u6b65\u4e0e\u5e7f\u64ad&#xff1a; \u5b9e\u73b0\u4e86\u5728\u670d\u52a1\u7aef\u6570\u636e\u66f4\u65b0\u65f6\u5411\u6240\u6709\u8fde\u63a5\u5ba2\u6237\u7aef\u5b9e\u65f6\u5e7f\u64ad\u6700\u65b0\u9650\u901f\u4fe1\u606f\u7684\u529f\u80fd&#xff0c;\u4ee5\u53ca\u5ba2\u6237\u7aef\u8fde\u63a5\u6210\u529f\u540e\u4e3b\u52a8\u8bf7\u6c42\u5168\u91cf\u6570\u636e\u7684\u529f\u80fd\u3002\u8fd9\u6a21\u62df\u4e86\u5b9e\u9645\u5217\u63a7\u7cfb\u7edf\u4e2d\u9650\u901f\u4fe1\u606f\u7684\u9ad8\u6548\u5206\u53d1\u548c\u540c\u6b65\u673a\u5236&#xff08;\u7b26\u5408\u89c4\u8303 5.5.1.6 \u7684\u5237\u65b0\u8981\u6c42&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u7528\u6237\u754c\u9762\u5f00\u53d1&#xff1a; \u4f7f\u7528PyQt5\u5f00\u53d1\u4e86\u76f4\u89c2\u7684\u670d\u52a1\u7aefGUI&#xff08;TSRS\u7ba1\u7406\u4e2d\u5fc3&#xff09;\u548c\u5ba2\u6237\u7aefGUI&#xff08;\u5217\u8f66\u8fd0\u884c\u7ec8\u7aef&#xff09;\u3002\u670d\u52a1\u7aefGUI\u63d0\u4f9b\u4e86\u5bf9\u9650\u901f\u547d\u4ee4\u7684\u56fe\u5f62\u5316\u7ba1\u7406\u754c\u9762\u3001\u5ba2\u6237\u7aef\u8fde\u63a5\u72b6\u6001\u76d1\u63a7\u548c\u64cd\u4f5c\u65e5\u5fd7\u663e\u793a\u3002\u5ba2\u6237\u7aefGUI\u5219\u4e13\u6ce8\u4e8e\u63a5\u6536\u548c\u5c55\u793a\u5f53\u524d\u6709\u6548\u7684\u9650\u901f\u4fe1\u606f&#xff0c;\u5e76\u63d0\u4f9b\u4e86\u8fde\u63a5\u63a7\u5236\u548c\u65e5\u5fd7\u529f\u80fd\u3002<\/li>\n<li style=\"text-align:justify\">\u81ea\u52a8\u91cd\u8fde\u673a\u5236&#xff1a; \u5ba2\u6237\u7aef\u5b9e\u73b0\u4e86\u81ea\u52a8\u91cd\u8fde\u529f\u80fd&#xff0c;\u80fd\u591f\u5728\u4e0e\u670d\u52a1\u7aef\u8fde\u63a5\u65ad\u5f00\u540e&#xff0c;\u5468\u671f\u6027\u5730\u5c1d\u8bd5\u6062\u590d\u8fde\u63a5&#xff0c;\u63d0\u5347\u4e86\u7cfb\u7edf\u7684\u53ef\u7528\u6027\u548c\u9c81\u68d2\u6027&#xff0c;\u6a21\u62df\u4e86\u901a\u4fe1\u4e2d\u65ad\u6062\u590d\u540e\u7684\u884c\u4e3a\u3002<\/li>\n<li style=\"text-align:justify\">\u65e5\u5fd7\u8bb0\u5f55\u4e0e\u8c03\u8bd5&#xff1a; \u7cfb\u7edf\u5185\u7f6e\u4e86\u8be6\u7ec6\u7684\u65e5\u5fd7\u8bb0\u5f55\u529f\u80fd&#xff0c;\u6240\u6709\u5173\u952e\u64cd\u4f5c\u3001\u901a\u4fe1\u4e8b\u4ef6\u548c\u9519\u8bef\u4fe1\u606f\u90fd\u4f1a\u88ab\u8bb0\u5f55\u5e76\u663e\u793a\u5728GUI\u65e5\u5fd7\u533a\u548c\u6587\u4ef6\u4e2d&#xff0c;\u6781\u5927\u5730\u4fbf\u5229\u4e86\u5f00\u53d1\u3001\u6d4b\u8bd5\u548c\u95ee\u9898\u6392\u67e5\u3002<\/li>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u672c\u6b21\u8bfe\u7a0b\u8bbe\u8ba1\u52a0\u6df1\u4e86\u6211\u4eec\u5bf9\u5217\u8f66\u8fd0\u884c\u63a7\u5236\u7cfb\u7edf\u4e2d\u4e34\u65f6\u9650\u901f\u7ba1\u7406\u91cd\u8981\u6027\u7684\u7406\u89e3&#xff0c;\u5b9e\u8df5\u4e86\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u3001GUI\u5f00\u53d1\u3001\u7f51\u7edc\u901a\u4fe1\u548c\u591a\u7ebf\u7a0b\u7f16\u7a0b\u7b49\u6280\u672f&#xff0c;\u5e76\u521d\u6b65\u638c\u63e1\u4e86\u5982\u4f55\u4f9d\u636e\u884c\u4e1a\u89c4\u8303\u8fdb\u884c\u7cfb\u7edf\u529f\u80fd\u7684\u8bbe\u8ba1\u548c\u5b9e\u73b0\u3002<\/p>\n<h3 style=\"margin-left:0px;margin-right:0px;text-align:justify\"><span style=\"color:#0f4761\">6.2. \u4e0d\u8db3\u4e4b\u5904<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5c3d\u7ba1\u672c\u6b21\u8bbe\u8ba1\u5b9e\u73b0\u4e86TSRS\u7684\u6838\u5fc3\u529f\u80fd&#xff0c;\u4f46\u4f5c\u4e3a\u4eff\u771f\u7cfb\u7edf&#xff0c;\u4ecd\u5b58\u5728\u4ee5\u4e0b\u4e0d\u8db3\u548c\u53ef\u6539\u8fdb\u4e4b\u5904&#xff1a;<\/p>\n<li style=\"text-align:justify\">\u89c4\u8303\u5b9e\u73b0\u5b8c\u6574\u5ea6&#xff1a; \u9650\u4e8e\u65f6\u95f4\u548c\u8d44\u6e90&#xff0c;\u672a\u80fd\u5b8c\u5168\u5b9e\u73b0\u300a\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668\u6280\u672f\u89c4\u8303\u300b\u7684\u6240\u6709\u7ec6\u8282\u3002\u4f8b\u5982&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5b89\u5168\u5b8c\u6574\u6027\u7b49\u7ea7&#xff08;SIL4&#xff09;&#xff1a; \u672c\u7cfb\u7edf\u4ec5\u4e3a\u4eff\u771f\u6a21\u62df&#xff0c;\u672a\u6d89\u53ca\u9ad8\u5b89\u5168\u7b49\u7ea7\u6240\u9700\u7684\u5197\u4f59\u8ba1\u7b97\u3001\u6545\u969c\u8bca\u65ad\u9694\u79bb\u3001\u786c\u4ef6\u5b89\u5168\u5e73\u53f0\u3001\u5b89\u5168\u901a\u4fe1\u534f\u8bae&#xff08;RSSP-I\/II&#xff09;\u7684\u4e25\u683c\u5b9e\u73b0\u4e0e\u8ba4\u8bc1\u3002<\/li>\n<li style=\"text-align:justify\">\u91cc\u7a0b\u6807\u4e0e\u95ed\u585e\u5206\u533a\u6821\u9a8c&#xff1a; \u5b9e\u9645\u7cfb\u7edf\u4e2d\u5bf9\u91cc\u7a0b\u6807\u7684\u6821\u9a8c\u4f1a\u66f4\u52a0\u590d\u6742&#xff0c;\u6d89\u53ca\u5230\u7ebf\u8def\u6570\u636e\u3001\u77ed\u94fe\u70b9\u3001\u5730\u7406\u5750\u6807\u7b49&#xff0c;\u800c\u672c\u7cfb\u7edf\u4ec5\u8fdb\u884c\u4e86\u57fa\u7840\u7684\u975e\u7a7a\u548c\u683c\u5f0f\u6821\u9a8c\u3002<\/li>\n<li style=\"text-align:justify\">\u9650\u901f\u547d\u4ee4\u62c6\u5206\u4e0b\u8fbe&#xff1a; \u89c4\u8303 5.5.1.1 \u63d0\u5230TSRS\u9700\u6839\u636e\u7ba1\u8f96\u8303\u56f4\u62c6\u5206\u9650\u901f\u547d\u4ee4\u3002\u672c\u7cfb\u7edf\u53ea\u662f\u7b80\u5355\u5730\u5411\u6240\u6709\u5ba2\u6237\u7aef\u5e7f\u64ad\u6240\u6709\u9650\u901f&#xff0c;\u672a\u6a21\u62df\u6839\u636e\u7ba1\u8f96\u8303\u56f4\u8fdb\u884c\u62c6\u5206\u4e0b\u53d1\u3002<\/li>\n<li style=\"text-align:justify\">\u9650\u901f\u8bbe\u7f6e\u65f6\u673a\u8f85\u52a9\u63d0\u793a&#xff1a; \u89c4\u8303 5.4 \u63d0\u53ca\u7684\u6fc0\u6d3b\u63d0\u793a\u3001\u8d85\u65f6\u672a\u8bbe\u7f6e\u63d0\u793a\u7b49\u529f\u80fd&#xff0c;\u867d\u7136\u90e8\u5206\u903b\u8f91\u5728\u72b6\u6001\u7ba1\u7406\u4e2d\u4f53\u73b0&#xff0c;\u4f46\u672a\u5728GUI\u4e0a\u5b9e\u73b0\u660e\u786e\u7684\u4ea4\u4e92\u5f0f\u63d0\u793a\u3002<\/li>\n<li style=\"text-align:justify\">RAMS\u8981\u6c42&#xff1a; \u53ef\u9760\u6027\u3001\u53ef\u7528\u6027\u3001\u53ef\u7ef4\u4fee\u6027\u7b49\u6307\u6807\u672a\u8fdb\u884c\u91cf\u5316\u5206\u6790\u548c\u4e25\u683c\u6d4b\u8bd5\u3002<\/li>\n<li style=\"text-align:justify\">\u7535\u78c1\u517c\u5bb9\u4e0e\u9632\u96f7&#xff1a; \u8fd9\u4e9b\u7269\u7406\u5c42\u9762\u7684\u8981\u6c42\u5728\u8f6f\u4ef6\u4eff\u771f\u4e2d\u65e0\u6cd5\u4f53\u73b0\u3002<\/li>\n<li style=\"text-align:justify\">\u8c03\u5ea6\u53f0\u7ba1\u754c\u8303\u56f4\u548c\u6709\u6e90\u5e94\u7b54\u5668\u6570\u91cf&#xff1a; \u89c4\u8303 5.2.1.2 \u63d0\u5230\u6700\u957f\u9650\u901f\u533a\u957f\u5ea6\u4e3a\u8c03\u5ea6\u53f0\u7ba1\u754c\u8303\u56f4&#xff0c;5.2.1.5 \u63d0\u5230\u6bcf\u4e2a\u6709\u6e90\u5e94\u7b54\u5668\u6b63\u7ebf\u7ba1\u8f96\u8303\u56f4\u5185\u6700\u591a\u5141\u8bb8\u540c\u65f6\u8bbe\u7f6e3\u5904\u9650\u901f\u3002\u8fd9\u4e9b\u590d\u6742\u4e1a\u52a1\u903b\u8f91\u672a\u5728\u672c\u6b21\u5b9e\u73b0\u4e2d\u4f53\u73b0\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u56fe\u5f62\u5316\u5c55\u793a\u4e0d\u8db3&#xff1a; \u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7aef\u5747\u65e0\u7ebf\u8def\u56fe\u6216\u7ad9\u573a\u56fe\u7684\u56fe\u5f62\u5316\u663e\u793a&#xff0c;\u65e0\u6cd5\u76f4\u89c2\u5730\u5728\u5730\u56fe\u4e0a\u770b\u5230\u9650\u901f\u533a\u57df&#xff0c;\u8fd9\u9650\u5236\u4e86\u7cfb\u7edf\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u53ef\u89c6\u5316\u7a0b\u5ea6\u3002<\/li>\n<li style=\"text-align:justify\">\u6570\u636e\u6301\u4e45\u5316&#xff1a; \u5f53\u524d\u7cfb\u7edf\u6570\u636e\u4ec5\u5b58\u5728\u5185\u5b58\u4e2d&#xff0c;\u91cd\u542f\u540e\u6570\u636e\u4f1a\u4e22\u5931\u3002\u5b9e\u9645\u7cfb\u7edf\u9700\u8981\u5c06\u9650\u901f\u547d\u4ee4\u5b58\u50a8\u5728\u53ef\u9760\u7684\u6570\u636e\u5e93\u4e2d&#xff08;\u5982SQL\u6570\u636e\u5e93&#xff09;&#xff0c;\u5e76\u652f\u6301\u6570\u636e\u7684\u52a0\u8f7d\u548c\u6062\u590d\u3002<\/li>\n<li style=\"text-align:justify\">\u6027\u80fd\u4e0e\u5e76\u53d1&#xff1a; \u5c3d\u7ba1\u91c7\u7528\u4e86\u591a\u7ebf\u7a0b&#xff0c;\u4f46\u5bf9\u4e8e\u9ad8\u5e76\u53d1\u3001\u9ad8\u541e\u5410\u91cf\u7684\u5b9e\u9645\u94c1\u8def\u73af\u5883&#xff0c;\u53ef\u80fd\u9700\u8981\u66f4\u9ad8\u6548\u7684\u5e76\u53d1\u6a21\u578b&#xff08;\u5982\u5f02\u6b65I\/O\u3001\u7ebf\u7a0b\u6c60&#xff09;&#xff0c;\u4ee5\u53ca\u6027\u80fd\u4f18\u5316\u3002<\/li>\n<li style=\"text-align:justify\">\u7528\u6237\u4f53\u9a8c&#xff1a; GUI\u754c\u9762\u76f8\u5bf9\u7b80\u5355&#xff0c;\u7f3a\u4e4f\u66f4\u4e30\u5bcc\u7684\u7528\u6237\u4ea4\u4e92\u529f\u80fd&#xff08;\u5982\u7b5b\u9009\u3001\u6392\u5e8f\u3001\u6279\u91cf\u64cd\u4f5c\u7b49&#xff09;&#xff0c;\u4ee5\u53ca\u66f4\u53cb\u597d\u7684\u9519\u8bef\u63d0\u793a\u548c\u5f15\u5bfc\u3002<\/li>\n<li style=\"text-align:justify\">\u5b89\u5168\u7ba1\u7406&#xff1a; \u672a\u5b9e\u73b0\u7528\u6237\u8ba4\u8bc1\u3001\u6743\u9650\u7ba1\u7406\u7b49\u5b89\u5168\u673a\u5236&#xff0c;\u4efb\u4f55\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u5ba2\u6237\u7aef\u90fd\u53ef\u4ee5\u6a21\u62df\u64cd\u4f5c\u3002<\/li>\n<h3 style=\"margin-left:0px;margin-right:0px;text-align:justify\"><span style=\"color:#0f4761\">6.3. \u672a\u6765\u5c55\u671b<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u57fa\u4e8e\u672c\u6b21\u8bfe\u7a0b\u8bbe\u8ba1\u7684\u6210\u679c\u548c\u4e0d\u8db3&#xff0c;TSRS\u4eff\u771f\u7cfb\u7edf\u5728\u672a\u6765\u53ef\u4ee5\u4ece\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u8fdb\u884c\u6df1\u5165\u62d3\u5c55\u548c\u4f18\u5316&#xff1a;<\/p>\n<li style=\"text-align:justify\">\u5b8c\u5584\u89c4\u8303\u529f\u80fd&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5b9e\u73b0\u5b8c\u6574\u7684\u6821\u9a8c\u903b\u8f91&#xff1a; \u6df1\u5165\u7814\u7a76\u91cc\u7a0b\u6807\u3001\u95ed\u585e\u5206\u533a\u3001\u7ebf\u8def\u5761\u5ea6\u7b49\u590d\u6742\u7ebf\u8def\u53c2\u6570\u7684\u6821\u9a8c\u903b\u8f91&#xff0c;\u53ef\u80fd\u9700\u8981\u5f15\u5165\u6a21\u62df\u7684\u7ebf\u8def\u6570\u636e\u5e93\u3002<\/li>\n<li style=\"text-align:justify\">\u9650\u901f\u547d\u4ee4\u62c6\u5206\u4e0e\u5408\u5e76&#xff1a; \u6839\u636e\u6a21\u62df\u7684RBC\/TCC\u7ba1\u8f96\u8303\u56f4&#xff0c;\u5b9e\u73b0\u9650\u901f\u547d\u4ee4\u7684\u667a\u80fd\u62c6\u5206\u4e0b\u53d1\u548c\u591a\u8bbe\u5907\u6267\u884c\u7ed3\u679c\u7684\u7efc\u5408\u5224\u5b9a\u3002<\/li>\n<li style=\"text-align:justify\">\u8f85\u52a9\u63d0\u793a\u529f\u80fd&#xff1a; \u5728GUI\u4e2d\u660e\u786e\u5b9e\u73b0\u9650\u901f\u6fc0\u6d3b\u63d0\u793a\u3001\u8d85\u65f6\u672a\u8bbe\u7f6e\u63d0\u793a\u3001\u901a\u4fe1\u4e2d\u65ad\u8b66\u793a\u7b49&#xff0c;\u63d0\u5347\u8c03\u5ea6\u5458\u7684\u51b3\u7b56\u6548\u7387\u3002<\/li>\n<li style=\"text-align:justify\">\u5b89\u5168\u901a\u4fe1\u534f\u8bae\u6a21\u62df&#xff1a; \u5c1d\u8bd5\u6a21\u62dfRSSP-I\/II\u534f\u8bae\u7684\u6821\u9a8c\u7801\u3001\u65f6\u95f4\u6233\u7b49\u673a\u5236&#xff0c;\u63d0\u5347\u901a\u4fe1\u7684\u5b89\u5168\u6027\u6a21\u62df\u7a0b\u5ea6\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u96c6\u6210\u7ebf\u8def\u56fe\u5f62\u5316\u754c\u9762&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5f15\u5165\u7ebf\u8def\u56fe\u6216\u7ad9\u573a\u56fe&#xff0c;\u5728\u5730\u56fe\u4e0a\u53ef\u89c6\u5316\u663e\u793a\u9650\u901f\u533a\u57df&#xff0c;\u4ee5\u53ca\u5217\u8f66\u8fd0\u884c\u8f68\u8ff9&#xff08;\u5982\u679c\u6a21\u62df\u5217\u8f66&#xff09;&#xff0c;\u4f7f\u7cfb\u7edf\u66f4\u52a0\u76f4\u89c2\u548c\u5b9e\u7528\u3002<\/li>\n<li style=\"text-align:justify\">\u5728\u56fe\u5f62\u754c\u9762\u4e0a\u5b9e\u73b0\u9650\u901f\u533a\u57df\u7684\u62d6\u62fd\u3001\u9009\u62e9\u7b49\u4ea4\u4e92\u5f0f\u64cd\u4f5c&#xff0c;\u7b80\u5316\u9650\u901f\u7684\u8bbe\u7f6e\u8fc7\u7a0b\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u6570\u636e\u6301\u4e45\u5316\u4e0e\u6570\u636e\u5e93\u96c6\u6210&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5f15\u5165\u5173\u7cfb\u578b\u6570\u636e\u5e93&#xff08;\u5982SQLite\u3001PostgreSQL&#xff09;\u6216NoSQL\u6570\u636e\u5e93&#xff0c;\u5b9e\u73b0\u9650\u901f\u547d\u4ee4\u6570\u636e\u7684\u6301\u4e45\u5316\u5b58\u50a8&#xff0c;\u652f\u6301\u7cfb\u7edf\u91cd\u542f\u540e\u7684\u6570\u636e\u52a0\u8f7d\u548c\u5386\u53f2\u6570\u636e\u67e5\u8be2\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u589e\u5f3aRAMS\u7279\u6027&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u867d\u7136\u96be\u4ee5\u5728\u4eff\u771f\u4e2d\u5b8c\u5168\u5b9e\u73b0SIL4&#xff0c;\u4f46\u53ef\u4ee5\u5f15\u5165\u7b80\u5355\u7684\u6545\u969c\u6ce8\u5165\u673a\u5236&#xff0c;\u6d4b\u8bd5\u7cfb\u7edf\u5728\u7279\u5b9a\u6545\u969c&#xff08;\u5982\u7f51\u7edc\u4e22\u5305\u3001\u6570\u636e\u635f\u574f\u3001\u547d\u4ee4\u6267\u884c\u5931\u8d25&#xff09;\u4e0b\u7684\u54cd\u5e94&#xff0c;\u9a8c\u8bc1\u5176\u5bb9\u9519\u548c\u6062\u590d\u80fd\u529b\u3002<\/li>\n<li style=\"text-align:justify\">\u589e\u52a0\u7cfb\u7edf\u5185\u90e8\u72b6\u6001\u7684\u5197\u4f59\u5907\u4efd\u548c\u4e00\u81f4\u6027\u68c0\u67e5\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u7528\u6237\u6743\u9650\u4e0e\u65e5\u5fd7\u5ba1\u8ba1&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u5b9e\u73b0\u7b80\u5355\u7684\u7528\u6237\u767b\u5f55\u548c\u6743\u9650\u7ba1\u7406&#xff0c;\u533a\u5206\u4e0d\u540c\u89d2\u8272\u7684\u64cd\u4f5c\u6743\u9650\u3002<\/li>\n<li style=\"text-align:justify\">\u5b8c\u5584\u65e5\u5fd7\u8bb0\u5f55\u529f\u80fd&#xff0c;\u652f\u6301\u65e5\u5fd7\u67e5\u8be2\u3001\u8fc7\u6ee4\u3001\u5bfc\u51fa&#xff0c;\u5e76\u5bf9\u5173\u952e\u64cd\u4f5c\u8fdb\u884c\u5ba1\u8ba1\u8bb0\u5f55\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u6269\u5c55\u901a\u4fe1\u63a5\u53e3&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u6a21\u62df\u4e0eCTC\u7684\u7279\u5b9a\u63a5\u53e3\u534f\u8bae&#xff0c;\u800c\u4e0d\u4ec5\u4ec5\u662f\u901a\u7528\u5ba2\u6237\u7aef\u3002<\/li>\n<li style=\"text-align:justify\">\u8003\u8651\u652f\u6301\u591a\u79cd\u901a\u4fe1\u534f\u8bae&#xff0c;\u5982MQTT\u7b49&#xff0c;\u4ee5\u9002\u5e94\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u6a21\u62df\u5217\u8f66\u8fd0\u884c\u4e0e\u901f\u5ea6\u9632\u62a4&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u8fdb\u4e00\u6b65\u5f00\u53d1\u5217\u8f66\u6a21\u62df\u6a21\u5757&#xff0c;\u4f7f\u5176\u80fd\u591f\u63a5\u6536TSRS\u4e0b\u53d1\u7684\u9650\u901f\u4fe1\u606f&#xff0c;\u5e76\u5728\u56fe\u5f62\u754c\u9762\u4e0a\u6a21\u62df\u5217\u8f66\u6309\u7167\u9650\u901f\u8fdb\u884c\u901f\u5ea6\u9632\u62a4&#xff08;\u5982\u51cf\u901f\u3001\u505c\u8f66&#xff09;\u7684\u884c\u4e3a&#xff0c;\u4ece\u800c\u5f62\u6210\u4e00\u4e2a\u66f4\u5b8c\u6574\u7684\u5217\u63a7\u7cfb\u7edf\u4eff\u771f\u95ed\u73af\u3002<\/li>\n<\/ul>\n<\/li>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u901a\u8fc7\u6301\u7eed\u7684\u6539\u8fdb\u548c\u529f\u80fd\u6269\u5c55&#xff0c;\u672c\u6b21\u8bfe\u7a0b\u8bbe\u8ba1\u7684TSRS\u4eff\u771f\u7cfb\u7edf\u5c06\u80fd\u591f\u66f4\u5168\u9762\u3001\u66f4\u6df1\u5165\u5730\u6a21\u62df\u771f\u5b9e\u94c1\u8def\u4fe1\u53f7\u7cfb\u7edf\u7684\u590d\u6742\u6027&#xff0c;\u4e3a\u94c1\u8def\u4fe1\u53f7\u4e0e\u63a7\u5236\u9886\u57df\u7684\u6559\u5b66\u3001\u7814\u7a76\u548c\u539f\u578b\u5f00\u53d1\u63d0\u4f9b\u4e00\u4e2a\u6709\u4ef7\u503c\u7684\u5e73\u53f0\u3002<\/p>\n<hr \/>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u53c2\u8003\u6587\u732e<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">[1] \u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668\u6280\u672f\u89c4\u8303 ( \u6682\u884c ). 2012 \u5e74 4 \u6708. (\u672c\u6587\u6863\u4e3b\u8981\u53c2\u8003\u6765\u6e90) [2] \u79d1\u6280\u8fd0\u30102008\u301134 \u53f7 CTCS-3 \u7ea7\u5217\u63a7\u7cfb\u7edf\u603b\u4f53\u6280\u672f\u65b9\u6848 (V1.0). [3] \u79d1\u6280\u8fd0\u30102008\u3011127 \u53f7 \u4e2d\u56fd\u5217\u8f66\u8fd0\u884c\u63a7\u5236\u7cfb\u7edf CTCS \u540d\u8bcd\u672f\u8bed (V1.0). [4] \u8fd0\u57fa\u4fe1\u53f7\u30102010\u3011267 \u53f7 \u94c1\u8def\u4fe1\u53f7\u5b89\u5168\u901a\u4fe1\u534f\u8bae&#xff08; V1.0 &#xff09;. [5] \u8fd0\u57fa\u4fe1\u53f7\u30102010\u3011532 \u53f7 \u5217\u63a7\u7cfb\u7edf\u8bbe\u5907\u548c\u76f8\u5173\u8bbe\u5907\u7f16\u53f7\u89c4\u5219 (V1.0). [6] \u8fd0\u57fa\u4fe1\u53f7\u30102010\u3011533 \u53f7 RBC-TSRS \u63a5\u53e3\u89c4\u8303 (V1.0). [7] \u8fd0\u57fa\u4fe1\u53f7\u30102010\u3011534 \u53f7 TSRS-CTC \u63a5\u53e3\u89c4\u8303 (V1.0). [8] \u8fd0\u57fa\u4fe1\u53f7\u30102010\u3011534 \u53f7 TSRS-RBC \u63a5\u53e3\u89c4\u8303 (V1.0). [9] \u8fd0\u57fa\u4fe1\u53f7\u30102010\u3011534 \u53f7 TSRS-TSRS \u63a5\u53e3\u89c4\u8303 (V1.0). [10] \u8fd0 \u57fa \u4fe1 \u53f7 \u3010 2010 \u3011 821 \u53f7 \u5ba2 \u8fd0 \u4e13 \u7ebf \u4fe1 \u53f7 \u7cfb \u7edf \u5b89 \u5168 \u6570 \u636e \u7f51 \u6280 \u672f \u65b9 \u6848 &#xff08; V2.0 &#xff09;. [11] TB\/T 2615-94 \u94c1\u8def\u4fe1\u53f7\u6545\u969c-\u5b89\u5168\u539f\u5219. [12] TB\/T 3074-2003 \u94c1\u8def\u4fe1\u53f7\u8bbe\u5907\u96f7\u7535\u7535\u8109\u51b2\u9632\u62a4\u6280\u672f\u6761\u4ef6&#xff08; IEC 61312-1-1995 &#xff09;. [13] GB\/T 21562-2008 &#xff08; IEC 62278-2002 &#xff08; EN 50126-1999 &#xff09;&#xff09; \u8f68\u9053\u4ea4\u901a \u53ef\u9760\u6027\u3001\u53ef\u7528\u6027\u3001\u53ef\u7ef4\u4fee\u6027\u548c\u5b89\u5168\u6027 \u89c4\u8303\u53ca\u793a\u4f8b. [14] GB\/T 24338.5-2009 \u8f68\u9053\u4ea4\u901a\u7535\u78c1\u517c\u5bb9\u7b2c 4 \u90e8\u5206&#xff1a;\u4fe1\u53f7\u548c\u901a\u4fe1\u8bbe\u5907\u7684\u53d1\u5c04\u4e0e\u6297\u6270\u5ea6. [15] GB\/T 24339.1-2009 \u8f68\u9053\u4ea4\u901a \u901a\u4fe1\u3001\u4fe1\u53f7\u548c\u5904\u7406\u7cfb\u7edf \u7b2c 1 \u90e8\u5206&#xff1a;\u5c01\u95ed\u5f0f\u4f20\u8f93\u7cfb\u7edf\u4e2d\u7684\u5b89\u5168\u76f8\u5173\u901a\u4fe1 &#xff08; IEC 62280-1-2002 &#xff08; EN 50159-1 &#xff09;&#xff09;. [16] GB\/T 24339.2-2009 \u8f68\u9053\u4ea4\u901a \u901a\u4fe1\u3001\u4fe1\u53f7\u548c\u5904\u7406\u7cfb\u7edf \u7b2c 2 \u90e8\u5206&#xff1a;\u5f00\u653e\u5f0f\u4f20\u8f93\u7cfb\u7edf\u4e2d\u7684\u5b89\u5168\u76f8\u5173\u901a\u4fe1 &#xff08; IEC 62280-2-2002 &#xff08; EN 50159-2 &#xff09;&#xff09;. [17] IEC 61508-2000 Functional safety of electrical\/electronic\/programmable electronic safety-related systems \u7535\u6c14\/\u7535\u5b50\/\u53ef\u7f16\u7a0b\u7535\u5b50\u5b89\u5168\u7cfb\u7edf\u7684\u529f\u80fd\u5b89\u5168. [18] IEC 62279-2002 Railway applications \u2013 Communications, signalling and processing systems \u2013 Software for railway control and protection systems \u94c1\u9053\u5e94\u7528&#xff0d;\u901a\u4fe1\u3001\u4fe1\u53f7\u548c\u5904\u7406\u7cfb\u7edf&#xff0d;\u94c1\u8def\u63a7\u5236\u548c\u9632\u62a4\u7cfb\u7edf\u8f6f\u4ef6&#xff08; EN 50128-2010 &#xff09;. [19] IEC 62425-2007 Railway applications \u2013 Communication, signalling and processing systems \u2013 Safety related electronic systems for signalling \u94c1\u9053\u5e94\u7528&#xff0d;\u901a\u4fe1\u3001\u4fe1\u53f7\u548c\u5904\u7406\u7cfb\u7edf&#xff0d;\u5b89\u5168\u76f8\u5173\u7535\u5b50\u7cfb\u7edf&#xff08; EN 50129-2003 &#xff09;. [20] IEC62498-3-2010 Railway Application-Environmental Conditions for Equipments &#8211; Part3 &#xff1a; Equipment for Signalling and Telecommunicatlons \u94c1\u8def\u5e94\u7528-\u8bbe\u5907\u7684\u73af\u5883\u6761\u4ef6-\u7b2c 3 \u90e8\u5206&#xff1a;\u4fe1\u53f7\u8bbe\u5907\u548c\u901a\u8baf\u8bbe\u5907&#xff08; EN 50125-3-2003 &#xff09;. [21] \u5e38\u5cf0. CTCS-2\u7ea7\u5217\u63a7\u4eff\u771f\u57f9\u8bad\u7cfb\u7edf\u2014\u2014\u4e34\u65f6\u9650\u901f\u5b50\u7cfb\u7edf\u7684\u7814\u7a76[D]. \u5170\u5dde\u4ea4\u901a\u5927\u5b66, 2017. DOI:10.7666\/d.Y3284181. [22] \u8881\u4fca\u559c. \u5355\u7ebf\u94c1\u8def CTCS-2 \u7ea7\u5217\u63a7\u7cfb\u7edf\u8bbe\u8ba1\u5e94\u7528\u7814\u7a76[J]. \u94c1\u9053\u6807\u51c6\u8bbe\u8ba1, 2019, 63(5): 129-133. [23] \u88d8\u97e7. \u4e2d\u56fd CTCS 2 \u7ea7\u5217\u63a7\u7cfb\u7edf\u7684\u529f\u80fd\u53ca\u6280\u672f\u7279\u70b9[J]. \u94c1\u8def\u901a\u4fe1\u4fe1\u53f7\u5de5\u7a0b\u6280\u672f, 2007, 4(4): 3-7. [24] \u5f20\u5229\u829d. CTCS-2 \u7ea7\u5217\u8f66\u8fd0\u884c\u63a7\u5236\u7cfb\u7edf[J]. \u673a\u8f66\u7535\u4f20\u52a8, 2010(6): 43-47. [25] \u90ed\u5b81, \u6768\u5dcd, \u5434\u4eae. CTCS2 \u7ea7\u5217\u8f66\u8fd0\u884c\u63a7\u5236\u7cfb\u7edf\u8d85\u901f\u9632\u62a4\u4eff\u771f\u7814\u7a76[J]. \u4ea4\u901a\u8fd0\u8f93\u5de5\u7a0b\u4e0e\u4fe1\u606f\u5b66\u62a5, 2007, 5(4): 122-126. [26] \u738b\u6653\u8f89. C2 \u5217\u63a7\u7cfb\u7edf\u4eff\u771f\u8bd5\u9a8c\u5b9e\u65bd\u65b9\u6848\u7684\u7814\u7a76[D]. \u5317\u4eac: \u4e2d\u56fd\u94c1\u9053\u79d1\u5b66\u7814\u7a76\u9662, 2014. [27] \u66fe\u4e91. \u533a\u95f4\u95ed\u585e\u4eff\u771f\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0[D]. \u56db\u5ddd: \u897f\u5357\u4ea4\u901a\u5927\u5b66, 2017. [28] \u4f55\u575a. CTCS2 \u5217\u63a7\u4eff\u771f\u7cfb\u7edf\u73af\u5883\u6a21\u62df\u5668\u7684\u8bbe\u8ba1\u4e0e\u7814\u7a76[D]. \u897f\u5357\u4ea4\u901a\u5927\u5b66, 2011. [29] \u674e\u9aa5\u7fa4. CTCS-2 \u7ea7\u5217\u63a7\u7cfb\u7edf\u5217\u63a7\u4e2d\u5fc3\u5b50\u7cfb\u7edf\u4eff\u771f\u8bbe\u8ba1\u4e0e\u7814\u7a76[D]. \u897f\u5357\u4ea4\u901a\u5927\u5b66, 2010. [30] \u5218\u6d77\u5cf0. CTCS-2 \u7ea7\u5217\u63a7\u4eff\u771f\u57f9\u8bad\u7cfb\u7edf\u2014\u2014\u5730\u9762\u5b50\u7cfb\u7edf\u7684\u7814\u7a76[D]. \u5170\u5dde\u4ea4\u901a\u5927\u5b66, 2017. DOI:10.7666\/d.Y3284178. [31] \u5b8b\u82cf\u6c11. CTCS-2 \u7ea7\u5217\u63a7\u4eff\u771f\u57f9\u8bad\u7cfb\u7edf\u2014\u2014\u8f66\u8f7d\u5b50\u7cfb\u7edf\u7684\u7814\u7a76[D]. \u5170\u5dde\u4ea4\u901a\u5927\u5b66, 2017. DOI:10.7666\/d.Y3284177. [32] \u6768\u626c\u7f16. \u8f66\u7ad9\u4fe1\u53f7\u63a7\u5236\u7cfb\u7edf[M]. \u897f\u5357\u4ea4\u901a\u5927\u5b66\u51fa\u7248\u793e, 2012. [33] \u90d1\u5dde\u94c1\u8def\u5c40\u804c\u5de5\u6559\u80b2\u5904\u7f16. \u8f66\u7ad9\u8054\u9501\u7cfb\u7edf\u539f\u7406\u4e0e\u7ef4\u62a4[M]. \u4e2d\u56fd\u94c1\u9053\u51fa\u7248\u793e, 2012. [34] \u6797\u745c\u7b60. \u8f66\u7ad9\u4fe1\u53f7[M]. \u4e2d\u56fd\u94c1\u9053\u51fa\u7248\u793e\u6709\u9650\u516c\u53f8, 2019. [35] \u5f20\u7acb\u7fa4, \u5f20\u534e, \u6731\u51e4\u6587\u4e3b\u7f16. \u94c1\u8def\u8f66\u7ad9\u8054\u9501\u8bbe\u5907\u7ef4\u62a4[M]. \u6210\u90fd&#xff1a;\u897f\u5357\u4ea4\u901a\u5927\u5b66\u51fa\u7248\u793e, 2016.<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb680\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf24\u6b21\u3002\u672c\u62a5\u544a\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5217\u8f66\u8fd0\u884c\u63a7\u5236\u7cfb\u7edf\u4e2d\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668\uff08TSRS\uff09\u7684\u529f\u80fd\u4eff\u771f\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\u3002\u62a5\u544a\u9996\u5148\u9610\u8ff0\u4e86TSRS\u7684\u80cc\u666f\u4e0e\u610f\u4e49\uff0c\u5206\u6790\u4e86\u56fd\u5185\u5916\u7684\u53d1\u5c55\u73b0\u72b6\uff0c\u5e76\u6982\u8ff0\u4e86TSRS\u5728CTCS\u5217\u63a7\u7cfb\u7edf\u4e2d\u7684\u5b9a\u4f4d\u4e0e\u4f5c\u7528\u3002\u968f\u540e\uff0c\u62a5\u544a\u8be6\u7ec6\u63cf\u8ff0\u4e86TSRS\u7684\u7cfb\u7edf\u603b\u4f53\u8981\u6c42\u3001\u8bbe\u5907\u7ec4\u6210\u4e0e\u4ea4\u4e92\u5173\u7cfb\uff0c\u4ee5\u53ca\u6280\u672f\u8981\u6c42\u4e0e\u6838\u5fc3\u529f\u80fd\u7684\u5b9e\u73b0\u3002\u901a\u8fc7Python\u548cPyQt5\uff0c\u8bbe\u8ba1\u5e76\u5b9e\u73b0\u4e86TSRS\u7684\u4eff\u771f\u7cfb\u7edf\uff0c\u5305\u62ec\u6570\u636e\u6a21\u578b\u8bbe\u8ba1\u3001\u7ba1\u7406\u6a21\u5757\u529f\u80fd\u5b9e\u73b0\u3001\u670d\u52a1\u7aef\u901a\u4fe1\u673a\u5236\u7b49\u3002\u62a5\u544a\u8fd8\u5c55\u793a\u4e86\u7cfb\u7edf\u7684GUI\u754c\u9762\u8bbe\u8ba1\uff0c\u5e76\u8fdb\u884c\u4e86\u529f\u80fd\u6d4b\u8bd5\u4e0e\u9a8c\u8bc1\uff0c\u786e\u4fdd\u7cfb\u7edf\u7b26\u5408\u300a\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668\u6280\u672f\u89c4\u8303\u300b\u7684\u8981\u6c42\u3002_\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668tsrs\u4eff\u771f<\/p>\n","protected":false},"author":2,"featured_media":42466,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,43,3953],"topic":[],"class_list":["post-42467","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-python","tag-43","tag-3953"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668TSRS\u529f\u80fd\u4eff\u771f\u8bbe\u8ba1\u4e0e\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/42467.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668TSRS\u529f\u80fd\u4eff\u771f\u8bbe\u8ba1\u4e0e\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb680\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf24\u6b21\u3002\u672c\u62a5\u544a\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5217\u8f66\u8fd0\u884c\u63a7\u5236\u7cfb\u7edf\u4e2d\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668\uff08TSRS\uff09\u7684\u529f\u80fd\u4eff\u771f\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\u3002\u62a5\u544a\u9996\u5148\u9610\u8ff0\u4e86TSRS\u7684\u80cc\u666f\u4e0e\u610f\u4e49\uff0c\u5206\u6790\u4e86\u56fd\u5185\u5916\u7684\u53d1\u5c55\u73b0\u72b6\uff0c\u5e76\u6982\u8ff0\u4e86TSRS\u5728CTCS\u5217\u63a7\u7cfb\u7edf\u4e2d\u7684\u5b9a\u4f4d\u4e0e\u4f5c\u7528\u3002\u968f\u540e\uff0c\u62a5\u544a\u8be6\u7ec6\u63cf\u8ff0\u4e86TSRS\u7684\u7cfb\u7edf\u603b\u4f53\u8981\u6c42\u3001\u8bbe\u5907\u7ec4\u6210\u4e0e\u4ea4\u4e92\u5173\u7cfb\uff0c\u4ee5\u53ca\u6280\u672f\u8981\u6c42\u4e0e\u6838\u5fc3\u529f\u80fd\u7684\u5b9e\u73b0\u3002\u901a\u8fc7Python\u548cPyQt5\uff0c\u8bbe\u8ba1\u5e76\u5b9e\u73b0\u4e86TSRS\u7684\u4eff\u771f\u7cfb\u7edf\uff0c\u5305\u62ec\u6570\u636e\u6a21\u578b\u8bbe\u8ba1\u3001\u7ba1\u7406\u6a21\u5757\u529f\u80fd\u5b9e\u73b0\u3001\u670d\u52a1\u7aef\u901a\u4fe1\u673a\u5236\u7b49\u3002\u62a5\u544a\u8fd8\u5c55\u793a\u4e86\u7cfb\u7edf\u7684GUI\u754c\u9762\u8bbe\u8ba1\uff0c\u5e76\u8fdb\u884c\u4e86\u529f\u80fd\u6d4b\u8bd5\u4e0e\u9a8c\u8bc1\uff0c\u786e\u4fdd\u7cfb\u7edf\u7b26\u5408\u300a\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668\u6280\u672f\u89c4\u8303\u300b\u7684\u8981\u6c42\u3002_\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668tsrs\u4eff\u771f\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/42467.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-09T00:15:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609001550-684627b60380b.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"22 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/42467.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/42467.html\",\"name\":\"\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668TSRS\u529f\u80fd\u4eff\u771f\u8bbe\u8ba1\u4e0e\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-09T00:15:51+00:00\",\"dateModified\":\"2025-06-09T00:15:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/42467.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/42467.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/42467.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668TSRS\u529f\u80fd\u4eff\u771f\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668TSRS\u529f\u80fd\u4eff\u771f\u8bbe\u8ba1\u4e0e\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/42467.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668TSRS\u529f\u80fd\u4eff\u771f\u8bbe\u8ba1\u4e0e\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb680\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf24\u6b21\u3002\u672c\u62a5\u544a\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5217\u8f66\u8fd0\u884c\u63a7\u5236\u7cfb\u7edf\u4e2d\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668\uff08TSRS\uff09\u7684\u529f\u80fd\u4eff\u771f\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\u3002\u62a5\u544a\u9996\u5148\u9610\u8ff0\u4e86TSRS\u7684\u80cc\u666f\u4e0e\u610f\u4e49\uff0c\u5206\u6790\u4e86\u56fd\u5185\u5916\u7684\u53d1\u5c55\u73b0\u72b6\uff0c\u5e76\u6982\u8ff0\u4e86TSRS\u5728CTCS\u5217\u63a7\u7cfb\u7edf\u4e2d\u7684\u5b9a\u4f4d\u4e0e\u4f5c\u7528\u3002\u968f\u540e\uff0c\u62a5\u544a\u8be6\u7ec6\u63cf\u8ff0\u4e86TSRS\u7684\u7cfb\u7edf\u603b\u4f53\u8981\u6c42\u3001\u8bbe\u5907\u7ec4\u6210\u4e0e\u4ea4\u4e92\u5173\u7cfb\uff0c\u4ee5\u53ca\u6280\u672f\u8981\u6c42\u4e0e\u6838\u5fc3\u529f\u80fd\u7684\u5b9e\u73b0\u3002\u901a\u8fc7Python\u548cPyQt5\uff0c\u8bbe\u8ba1\u5e76\u5b9e\u73b0\u4e86TSRS\u7684\u4eff\u771f\u7cfb\u7edf\uff0c\u5305\u62ec\u6570\u636e\u6a21\u578b\u8bbe\u8ba1\u3001\u7ba1\u7406\u6a21\u5757\u529f\u80fd\u5b9e\u73b0\u3001\u670d\u52a1\u7aef\u901a\u4fe1\u673a\u5236\u7b49\u3002\u62a5\u544a\u8fd8\u5c55\u793a\u4e86\u7cfb\u7edf\u7684GUI\u754c\u9762\u8bbe\u8ba1\uff0c\u5e76\u8fdb\u884c\u4e86\u529f\u80fd\u6d4b\u8bd5\u4e0e\u9a8c\u8bc1\uff0c\u786e\u4fdd\u7cfb\u7edf\u7b26\u5408\u300a\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668\u6280\u672f\u89c4\u8303\u300b\u7684\u8981\u6c42\u3002_\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668tsrs\u4eff\u771f","og_url":"https:\/\/www.wsisp.com\/helps\/42467.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-09T00:15:51+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609001550-684627b60380b.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"22 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/42467.html","url":"https:\/\/www.wsisp.com\/helps\/42467.html","name":"\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668TSRS\u529f\u80fd\u4eff\u771f\u8bbe\u8ba1\u4e0e\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-09T00:15:51+00:00","dateModified":"2025-06-09T00:15:51+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/42467.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/42467.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/42467.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4e34\u65f6\u9650\u901f\u670d\u52a1\u5668TSRS\u529f\u80fd\u4eff\u771f\u8bbe\u8ba1\u4e0e\u5b9e\u73b0"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/42467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=42467"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/42467\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/42466"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=42467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=42467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=42467"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=42467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}