{"id":42555,"date":"2023-10-03T20:44:28","date_gmt":"2023-10-03T12:44:28","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=42555"},"modified":"2023-10-03T20:44:28","modified_gmt":"2023-10-03T12:44:28","slug":"mjyfs","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/42555.html","title":{"rendered":"Modbus\u6821\u9a8c\u65b9\u5f0f"},"content":{"rendered":"

  Modbus\u6821\u9a8c\u65b9\u5f0f\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6570\u636e\u4f20\u8f93\u65b9\u6cd5\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728\u7f51\u7edc\u4e2d\u8fdb\u884c\u5b89\u5168\u7684\u6570\u636e\u4f20\u8f93\u3002<\/strong>Modbus\u6821\u9a8c\u65b9\u5f0f\u4e3b\u8981\u662f\u901a\u8fc7CRC\u6821\u9a8c\u7801\u548c\u6821\u9a8c\u548c\u6765\u4fdd\u8bc1\u6570\u636e\u7684\u5b8c\u6574\u6027\uff0c\u4ece\u800c\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u7684\u53ef\u9760\u6027\u3002<\/p>\n

CRC\u6821\u9a8c\u7801<\/h2>\n

  CRC\u6821\u9a8c\u7801\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6570\u636e\u6821\u9a8c\u65b9\u6cd5\uff0c\u5b83\u53ef\u4ee5\u6709\u6548\u5730\u68c0\u6d4b\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\u3002\u5b83\u662f\u901a\u8fc7\u8ba1\u7b97\u53d1\u9001\u6570\u636e\u548c\u63a5\u6536\u6570\u636e\u7684\u6821\u9a8c\u548c\u6765\u5b9e\u73b0\u7684\uff0c\u6821\u9a8c\u548c\u7684\u8ba1\u7b97\u65b9\u5f0f\u53ef\u4ee5\u662fCRC-16\u3001CRC-32\u6216\u5176\u4ed6\u7c7b\u578b\u3002\u5f53\u53d1\u9001\u7684\u6570\u636e\u4e0e\u63a5\u6536\u7684\u6570\u636e\u7684\u6821\u9a8c\u548c\u4e0d\u540c\u65f6\uff0c\u5c31\u8868\u660e\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4e86\u9519\u8bef\uff0c\u8fd9\u65f6\u5c31\u9700\u8981\u91cd\u65b0\u53d1\u9001\u6570\u636e\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002<\/p>\n

  CRC-16<\/h3>\n

  CRC-16\u662f\u4e00\u79cd\u5e38\u7528\u7684CRC\u6821\u9a8c\u7801\uff0c\u5b83\u53ef\u4ee5\u6709\u6548\u5730\u68c0\u6d4b\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\u3002\u5b83\u662f\u901a\u8fc7\u8ba1\u7b97\u53d1\u9001\u6570\u636e\u548c\u63a5\u6536\u6570\u636e\u768416\u4f4d\u6821\u9a8c\u548c\u6765\u5b9e\u73b0\u7684\uff0c\u5f53\u53d1\u9001\u7684\u6570\u636e\u4e0e\u63a5\u6536\u7684\u6570\u636e\u7684\u6821\u9a8c\u548c\u4e0d\u540c\u65f6\uff0c\u5c31\u8868\u660e\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4e86\u9519\u8bef\uff0c\u8fd9\u65f6\u5c31\u9700\u8981\u91cd\u65b0\u53d1\u9001\u6570\u636e\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002<\/p>\n

  CRC-32<\/h3>\n

  CRC-32\u662f\u53e6\u4e00\u79cd\u5e38\u7528\u7684CRC\u6821\u9a8c\u7801\uff0c\u5b83\u53ef\u4ee5\u6709\u6548\u5730\u68c0\u6d4b\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\u3002\u5b83\u662f\u901a\u8fc7\u8ba1\u7b97\u53d1\u9001\u6570\u636e\u548c\u63a5\u6536\u6570\u636e\u768432\u4f4d\u6821\u9a8c\u548c\u6765\u5b9e\u73b0\u7684\uff0c\u5f53\u53d1\u9001\u7684\u6570\u636e\u4e0e\u63a5\u6536\u7684\u6570\u636e\u7684\u6821\u9a8c\u548c\u4e0d\u540c\u65f6\uff0c\u5c31\u8868\u660e\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4e86\u9519\u8bef\uff0c\u8fd9\u65f6\u5c31\u9700\u8981\u91cd\u65b0\u53d1\u9001\u6570\u636e\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002<\/p>\n

\u6821\u9a8c\u548c<\/h2>\n

  \u6821\u9a8c\u548c\u662f\u53e6\u4e00\u79cd\u5e38\u7528\u7684\u6570\u636e\u6821\u9a8c\u65b9\u6cd5\uff0c\u5b83\u53ef\u4ee5\u6709\u6548\u5730\u68c0\u6d4b\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\u3002\u5b83\u662f\u901a\u8fc7\u8ba1\u7b97\u53d1\u9001\u6570\u636e\u548c\u63a5\u6536\u6570\u636e\u7684\u6c42\u548c\u6821\u9a8c\u548c\u6765\u5b9e\u73b0\u7684\uff0c\u5f53\u53d1\u9001\u7684\u6570\u636e\u4e0e\u63a5\u6536\u7684\u6570\u636e\u7684\u6821\u9a8c\u548c\u4e0d\u540c\u65f6\uff0c\u5c31\u8868\u660e\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4e86\u9519\u8bef\uff0c\u8fd9\u65f6\u5c31\u9700\u8981\u91cd\u65b0\u53d1\u9001\u6570\u636e\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002<\/p>\n

  \u6c42\u548c\u6821\u9a8c\u548c<\/h3>\n

  \u6c42\u548c\u6821\u9a8c\u548c\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6821\u9a8c\u548c\uff0c\u5b83\u53ef\u4ee5\u6709\u6548\u5730\u68c0\u6d4b\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\u3002\u5b83\u662f\u901a\u8fc7\u8ba1\u7b97\u53d1\u9001\u6570\u636e\u548c\u63a5\u6536\u6570\u636e\u7684\u6c42\u548c\u6821\u9a8c\u548c\u6765\u5b9e\u73b0\u7684\uff0c\u5f53\u53d1\u9001\u7684\u6570\u636e\u4e0e\u63a5\u6536\u7684\u6570\u636e\u7684\u6821\u9a8c\u548c\u4e0d\u540c\u65f6\uff0c\u5c31\u8868\u660e\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4e86\u9519\u8bef\uff0c\u8fd9\u65f6\u5c31\u9700\u8981\u91cd\u65b0\u53d1\u9001\u6570\u636e\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  Modbus\u6821\u9a8c\u65b9\u5f0f\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6570\u636e\u4f20\u8f93\u65b9\u6cd5\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728\u7f51\u7edc\u4e2d\u8fdb\u884c\u5b89\u5168\u7684\u6570\u636e\u4f20\u8f93\u3002<\/strong>Modbus\u6821\u9a8c\u65b9\u5f0f\u4e3b\u8981\u662f\u901a\u8fc7CRC\u6821\u9a8c\u7801\u548c\u6821\u9a8c\u548c\u6765\u4fdd\u8bc1\u6570\u636e\u7684\u5b8c\u6574\u6027\uff0c\u4ece\u800c\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u7684\u53ef\u9760\u6027\u3002CRC\u6821\u9a8c\u7801\u4e3b\u8981\u662f\u901a\u8fc7\u8ba1\u7b97\u53d1\u9001\u6570\u636e\u548c\u63a5\u6536\u6570\u636e\u7684CRC-16\u6216CRC-32\u6821\u9a8c\u548c\u6765\u5b9e\u73b0\u7684\uff0c\u800c\u6821\u9a8c\u548c\u5219\u662f\u901a\u8fc7\u8ba1\u7b97\u53d1\u9001\u6570\u636e\u548c\u63a5\u6536\u6570\u636e\u7684\u6c42\u548c\u6821\u9a8c\u548c\u6765\u5b9e\u73b0\u7684\u3002\u901a\u8fc7\u4f7f\u7528Modbus\u6821\u9a8c\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u6709\u6548\u5730\u4fdd\u8bc1\u6570\u636e\u4f20\u8f93\u7684\u5b8c\u6574\u6027\uff0c\u4ece\u800c\u786e\u4fdd\u7f51\u7edc\u901a\u4fe1\u7684\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Modbus\u6821\u9a8c\u65b9\u5f0f\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6570\u636e\u4f20\u8f93\u65b9\u6cd5\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728\u7f51\u7edc\u4e2d\u8fdb\u884c\u5b89\u5168\u7684\u6570\u636e\u4f20\u8f93\u3002Modbus\u6821\u9a8c\u65b9\u5f0f\u4e3b\u8981\u662f\u901a\u8fc7CRC\u6821\u9a8c\u7801\u548c\u6821\u9a8c<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[78],"class_list":["post-42555","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-m-3"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/42555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=42555"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/42555\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=42555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=42555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=42555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}