{"id":40637,"date":"2023-10-02T11:14:55","date_gmt":"2023-10-02T03:14:55","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=40637"},"modified":"2023-10-02T11:14:55","modified_gmt":"2023-10-02T03:14:55","slug":"mjjjqyy","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/40637.html","title":{"rendered":"ModbusCRC\uff1a\u7b80\u4ecb\u53ca\u5176\u5e94\u7528"},"content":{"rendered":"
ModbusCRC\uff08\u5faa\u73af\u5197\u4f59\u6821\u9a8c\uff09\u662f\u4e00\u79cd\u7b80\u5355\u7684\u6570\u636e\u6821\u9a8c\u7b97\u6cd5\uff0c\u7528\u4e8e\u68c0\u6d4b\u6570\u636e\u5305\u4e2d\u7684\u6570\u636e\u9519\u8bef\u3002\u5b83\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6570\u636e\u6821\u9a8c\u7b97\u6cd5\uff0c\u4e3b\u8981\u7528\u4e8e\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\u3001\u7f51\u7edc\u5b89\u5168\u3001\u901a\u4fe1\u534f\u8bae\u7b49\u9886\u57df\u3002\u672c\u6587\u5c06\u4ecb\u7ecdModbusCRC\u7684\u539f\u7406\u3001\u5e94\u7528\u4ee5\u53ca\u5b9e\u73b0\u65b9\u6cd5\u3002<\/p>\n
ModbusCRC\u662f\u4e00\u79cd\u57fa\u4e8e\u5faa\u73af\u5197\u4f59\u6821\u9a8c\uff08CRC\uff09\u7684\u6821\u9a8c\u7b97\u6cd5\uff0c\u5b83\u901a\u8fc7\u8ba1\u7b97\u6570\u636e\u62a5\u6587\u4e2d\u7684\u7279\u5b9a\u4f4d\u7f6e\u7684\u6bd4\u7279\u6570\u636e\uff0c\u4ece\u800c\u68c0\u6d4b\u6570\u636e\u62a5\u6587\u4e2d\u7684\u9519\u8bef\u3002<\/p>\n
ModbusCRC\u7b97\u6cd5\u7684\u57fa\u672c\u539f\u7406\u662f\uff1a\u9996\u5148\uff0c\u5c06\u8981\u6821\u9a8c\u7684\u6570\u636e\u62a5\u6587\u5206\u5272\u4e3a\u4e00\u4e2a\u4e2a\u5b57\u8282\uff0c\u7136\u540e\u5bf9\u6bcf\u4e2a\u5b57\u8282\u8fdb\u884c\u6821\u9a8c\uff0c\u6700\u540e\u5c06\u6bcf\u4e2a\u5b57\u8282\u7684\u6821\u9a8c\u7ed3\u679c\u76f8\u52a0\uff0c\u5f97\u5230\u4e00\u4e2a16\u4f4d\u7684CRC\u6821\u9a8c\u7801\u3002<\/p>\n
ModbusCRC\u7b97\u6cd5\u7684\u6821\u9a8c\u8fc7\u7a0b\u53ef\u4ee5\u5206\u4e3a\u4ee5\u4e0b\u4e09\u4e2a\u6b65\u9aa4\uff1a<\/p>\n
\u7b2c\u4e8c\u6b65\uff1a\u5c06\u62a5\u6587\u4e2d\u7684\u6bcf\u4e2a\u5b57\u8282\u4e0e\u4e00\u4e2a\u7279\u5b9a\u7684\u5b57\u8282\u63a9\u7801\uff08bytemask\uff09\u8fdb\u884c\u6309\u4f4d\u4e0e\u64cd\u4f5c\u3002<\/p>\n
ModbusCRC\u7b97\u6cd5\u7684\u6821\u9a8c\u8fc7\u7a0b\u662f\u4e00\u79cd\u4e0d\u65ad\u8fed\u4ee3\u7684\u8fc7\u7a0b\uff0c\u6bcf\u6b21\u8fed\u4ee3\u90fd\u4f1a\u4ea7\u751f\u4e00\u4e2a\u65b0\u768416\u4f4dCRC\u6821\u9a8c\u7801\uff0c\u6700\u7ec8\u5f97\u5230\u7684CRC\u6821\u9a8c\u7801\u5c31\u662f\u62a5\u6587\u4e2d\u7684\u9519\u8bef\u68c0\u6d4b\u7ed3\u679c\u3002<\/p>\n
ModbusCRC\u7b97\u6cd5\u4e3b\u8981\u7528\u4e8e\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\uff0c\u7528\u4e8e\u68c0\u6d4b\u6570\u636e\u62a5\u6587\u4e2d\u7684\u9519\u8bef\u3002\u5b83\u4e3b\u8981\u7528\u4e8e\u68c0\u6d4b\u6a21\u62df\u91cf\u548c\u5f00\u5173\u91cf\u7684\u6570\u636e\uff0c\u4ee5\u786e\u4fdd\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u6b63\u786e\u6027\u3002ModbusCRC\u7b97\u6cd5\u8fd8\u53ef\u7528\u4e8e\u7f51\u7edc\u5b89\u5168\u548c\u901a\u4fe1\u534f\u8bae\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u7684\u5b8c\u6574\u6027\u3002<\/p>\n
ModbusCRC\u7b97\u6cd5\u7684\u5b9e\u73b0\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4e00\u4e2a\u652f\u6301\u4f4d\u63a9\u7801\u548c\u5b57\u8282\u63a9\u7801\u7684\u7b97\u6cd5\u5373\u53ef\u3002\u5b9e\u73b0ModbusCRC\u7b97\u6cd5\u7684\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n
\u7b2c\u4e8c\u6b65\uff1a\u786e\u5b9a\u5b57\u8282\u63a9\u7801\u3002<\/p>\n
\u7b2c\u56db\u6b65\uff1a\u5c06\u6bcf\u4e2a\u5b57\u8282\u7684\u6821\u9a8c\u7ed3\u679c\u76f8\u52a0\uff0c\u5f97\u5230\u4e00\u4e2a16\u4f4d\u7684CRC\u6821\u9a8c\u7801\u3002<\/p>\n
ModbusCRC\u7b97\u6cd5\u7684\u5b9e\u73b0\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4e00\u4e2a\u652f\u6301\u4f4d\u63a9\u7801\u548c\u5b57\u8282\u63a9\u7801\u7684\u7b97\u6cd5\u5373\u53ef\u3002\u5b83\u53ef\u4ee5\u6709\u6548\u5730\u68c0\u6d4b\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\u3001\u7f51\u7edc\u5b89\u5168\u548c\u901a\u4fe1\u534f\u8bae\u7b49\u9886\u57df\u4e2d\u7684\u6570\u636e\u62a5\u6587\uff0c\u4ece\u800c\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u7684\u6b63\u786e\u6027\u548c\u5b8c\u6574\u6027\u3002<\/p>\n
ModbusCRC\u7b97\u6cd5\u662f\u4e00\u79cd\u7b80\u5355\u7684\u6570\u636e\u6821\u9a8c\u7b97\u6cd5\uff0c\u5b83\u4e3b\u8981\u7528\u4e8e\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\u3001\u7f51\u7edc\u5b89\u5168\u548c\u901a\u4fe1\u534f\u8bae\u7b49\u9886\u57df\uff0c\u7528\u4e8e\u68c0\u6d4b\u6570\u636e\u62a5\u6587\u4e2d\u7684\u9519\u8bef\u3002<\/strong>\u5b83\u7684\u5b9e\u73b0\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4e00\u4e2a\u652f\u6301\u4f4d\u63a9\u7801\u548c\u5b57\u8282\u63a9\u7801\u7684\u7b97\u6cd5\u5373\u53ef\u3002ModbusCRC\u7b97\u6cd5\u53ef\u4ee5\u6709\u6548\u5730\u68c0\u6d4b\u6570\u636e\u62a5\u6587\u4e2d\u7684\u9519\u8bef\uff0c\u4ece\u800c\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u7684\u6b63\u786e\u6027\u548c\u5b8c\u6574\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" ModbusCRC\uff08\u5faa\u73af\u5197\u4f59\u6821\u9a8c\uff09\u662f\u4e00\u79cd\u7b80\u5355\u7684\u6570\u636e\u6821\u9a8c\u7b97\u6cd5\uff0c\u7528\u4e8e\u68c0\u6d4b\u6570\u636e\u5305\u4e2d\u7684\u6570\u636e\u9519\u8bef\u3002\u5b83\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6570\u636e\u6821\u9a8c\u7b97\u6cd5\uff0c\u4e3b\u8981\u7528\u4e8e\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\u3001\u7f51\u7edc\u5b89\u5168\u3001\u901a\u4fe1\u534f\u8bae\u7b49\u9886\u57df\u3002\u672c\u6587\u5c06<\/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-40637","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\/40637","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=40637"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/40637\/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=40637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=40637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=40637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}