{"id":40057,"date":"2023-10-04T07:55:36","date_gmt":"2023-10-03T23:55:36","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=40057"},"modified":"2023-10-04T07:55:36","modified_gmt":"2023-10-03T23:55:36","slug":"cjysrljsjjyjs","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/40057.html","title":{"rendered":"CRC16\u6821\u9a8c\uff1a\u6df1\u5165\u4e86\u89e3\u6570\u636e\u6821\u9a8c\u6280\u672f"},"content":{"rendered":"

  CRC16\u6821\u9a8c\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u6570\u636e\u6821\u9a8c\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u68c0\u6d4b\u51fa\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u5e76\u5728\u53d1\u73b0\u9519\u8bef\u65f6\u8fdb\u884c\u7ea0\u6b63\u3002<\/strong>\u5b83\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u53ef\u4ee5\u5f88\u597d\u5730\u68c0\u6d4b\u51fa\u4f20\u8f93\u4e2d\u7684\u7a81\u53d1\u9519\u8bef\uff0c\u800c\u4e14\u5b83\u7684\u8ba1\u7b97\u6548\u7387\u5f88\u9ad8\uff0c\u5728\u6bcf\u6b21\u4f20\u8f93\u4e2d\u53ea\u9700\u8981\u82b1\u8d39\u5f88\u5c11\u7684\u65f6\u95f4\u5c31\u53ef\u4ee5\u5b8c\u6210\u6821\u9a8c\u3002\u672c\u6587\u5c06\u6df1\u5165\u4e86\u89e3CRC16\u6821\u9a8c\u7684\u539f\u7406\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u5b83\u6765\u68c0\u6d4b\u548c\u7ea0\u6b63\u4f20\u8f93\u4e2d\u7684\u9519\u8bef\u3002<\/p>\n

CRC16\u6821\u9a8c\u6280\u672f\u80cc\u666f<\/h2>\n

  CRC16\u6821\u9a8c\u6280\u672f\u662f\u4e00\u79cd\u57fa\u4e8e\u5faa\u73af\u5197\u4f59\u6821\u9a8c\uff08Cyclic Redundancy Check\uff0cCRC\uff09\u7684\u6570\u636e\u6821\u9a8c\u6280\u672f\uff0c\u5b83\u7684\u5386\u53f2\u53ef\u4ee5\u8ffd\u6eaf\u523020\u4e16\u7eaa60\u5e74\u4ee3\u3002\u5f53\u65f6\uff0c\u7814\u7a76\u4eba\u5458\u53d1\u73b0\u4e86\u4e00\u79cd\u53ef\u4ee5\u68c0\u6d4b\u51fa\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\u7684\u7b97\u6cd5\uff0c\u8fd9\u79cd\u7b97\u6cd5\u88ab\u79f0\u4e3a\u5faa\u73af\u5197\u4f59\u6821\u9a8c\uff08CRC\uff09\u3002\u968f\u540e\uff0cCRC\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cd\u6570\u636e\u4f20\u8f93\u7cfb\u7edf\u4e2d\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u662fCRC16\u6821\u9a8c\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u6709\u6548\u5730\u68c0\u6d4b\u51fa\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\u3002<\/p>\n

CRC16\u6821\u9a8c\u539f\u7406<\/h2>\n

  CRC16\u6821\u9a8c\u662f\u4e00\u79cd\u57fa\u4e8e\u5faa\u73af\u5197\u4f59\u6821\u9a8c\uff08CRC\uff09\u7684\u6570\u636e\u6821\u9a8c\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u68c0\u6d4b\u51fa\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u5e76\u5728\u53d1\u73b0\u9519\u8bef\u65f6\u8fdb\u884c\u7ea0\u6b63\u3002CRC16\u6821\u9a8c\u7684\u539f\u7406\u662f\uff1a\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\uff0c\u53d1\u9001\u8005\u4f1a\u5c06\u539f\u59cb\u6570\u636e\u548c\u4e00\u7ec4\u6821\u9a8c\u548c\uff08CRC\uff09\u4e00\u8d77\u53d1\u9001\u7ed9\u63a5\u6536\u8005\uff1b\u63a5\u6536\u8005\u6536\u5230\u6570\u636e\u540e\uff0c\u4f1a\u5c06\u539f\u59cb\u6570\u636e\u548c\u6821\u9a8c\u548c\u8fdb\u884c\u6bd4\u8f83\uff0c\u5982\u679c\u4e24\u8005\u76f8\u7b49\uff0c\u5219\u8868\u793a\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u6ca1\u6709\u51fa\u73b0\u9519\u8bef\uff1b\u5982\u679c\u4e0d\u76f8\u7b49\uff0c\u5219\u8868\u793a\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4e86\u9519\u8bef\uff0c\u63a5\u6536\u8005\u4f1a\u5c1d\u8bd5\u7ea0\u6b63\u9519\u8bef\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u6b63\u786e\u6027\u3002<\/p>\n

\u5982\u4f55\u4f7f\u7528CRC16\u6821\u9a8c<\/h2>\n

  1. \u786e\u5b9a\u6821\u9a8c\u548c\u7684\u957f\u5ea6<\/h3>\n

  \u9996\u5148\uff0c\u5728\u4f7f\u7528CRC16\u6821\u9a8c\u4e4b\u524d\uff0c\u5fc5\u987b\u786e\u5b9a\u6821\u9a8c\u548c\u7684\u957f\u5ea6\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u6821\u9a8c\u548c\u7684\u957f\u5ea6\u53d6\u51b3\u4e8e\u4f20\u8f93\u7684\u6570\u636e\u91cf\uff0c\u4f20\u8f93\u7684\u6570\u636e\u91cf\u8d8a\u5927\uff0c\u6821\u9a8c\u548c\u7684\u957f\u5ea6\u4e5f\u4f1a\u8d8a\u957f\u3002<\/p>\n

  2. \u8ba1\u7b97\u6821\u9a8c\u548c<\/h3>\n

  \u63a5\u4e0b\u6765\uff0c\u4f7f\u7528CRC16\u6821\u9a8c\u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u8ba1\u7b97\u6821\u9a8c\u548c\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u8ba1\u7b97\u6821\u9a8c\u548c\u7684\u65b9\u6cd5\u662f\uff1a\u9996\u5148\u5c06\u4f20\u8f93\u7684\u6570\u636e\u8fdb\u884c\u5206\u7ec4\uff0c\u7136\u540e\u5c06\u6bcf\u7ec4\u6570\u636e\u4e0e\u4e00\u4e2a\u7279\u5b9a\u7684\u6821\u9a8c\u548c\u8fdb\u884c\u6bd4\u8f83\uff0c\u5982\u679c\u4e24\u8005\u76f8\u7b49\uff0c\u5219\u8868\u793a\u4f20\u8f93\u7684\u6570\u636e\u6ca1\u6709\u51fa\u73b0\u9519\u8bef\uff0c\u5982\u679c\u4e0d\u76f8\u7b49\uff0c\u5219\u8868\u793a\u4f20\u8f93\u7684\u6570\u636e\u51fa\u73b0\u4e86\u9519\u8bef\uff0c\u63a5\u6536\u8005\u4f1a\u5c1d\u8bd5\u7ea0\u6b63\u9519\u8bef\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u6b63\u786e\u6027\u3002<\/p>\n

  3. \u68c0\u6d4b\u548c\u7ea0\u6b63\u9519\u8bef<\/h3>\n

  \u6700\u540e\uff0c\u4f7f\u7528CRC16\u6821\u9a8c\u4e4b\u540e\uff0c\u53d1\u9001\u8005\u548c\u63a5\u6536\u8005\u90fd\u53ef\u4ee5\u68c0\u6d4b\u51fa\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u5e76\u5728\u53d1\u73b0\u9519\u8bef\u65f6\u8fdb\u884c\u7ea0\u6b63\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u63a5\u6536\u8005\u4f1a\u4f7f\u7528\u4e00\u79cd\u79f0\u4e3a\u201c\u7ea0\u9519\u7f16\u7801\uff08Error Correcting Codes\uff0cECC\uff09\u201d\u7684\u6280\u672f\u6765\u7ea0\u6b63\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  CRC16\u6821\u9a8c\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u6570\u636e\u6821\u9a8c\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u68c0\u6d4b\u51fa\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u5e76\u5728\u53d1\u73b0\u9519\u8bef\u65f6\u8fdb\u884c\u7ea0\u6b63\u3002<\/strong>CRC16\u6821\u9a8c\u7684\u539f\u7406\u662f\uff1a\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\uff0c\u53d1\u9001\u8005\u4f1a\u5c06\u539f\u59cb\u6570\u636e\u548c\u4e00\u7ec4\u6821\u9a8c\u548c\uff08CRC\uff09\u4e00\u8d77\u53d1\u9001\u7ed9\u63a5\u6536\u8005\uff1b\u63a5\u6536\u8005\u6536\u5230\u6570\u636e\u540e\uff0c\u4f1a\u5c06\u539f\u59cb\u6570\u636e\u548c\u6821\u9a8c\u548c\u8fdb\u884c\u6bd4\u8f83\uff0c\u5982\u679c\u4e24\u8005\u76f8\u7b49\uff0c\u5219\u8868\u793a\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u6ca1\u6709\u51fa\u73b0\u9519\u8bef\uff1b\u5982\u679c\u4e0d\u76f8\u7b49\uff0c\u5219\u8868\u793a\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4e86\u9519\u8bef\uff0c\u63a5\u6536\u8005\u4f1a\u5c1d\u8bd5\u7ea0\u6b63\u9519\u8bef\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u6b63\u786e\u6027\u3002CRC16\u6821\u9a8c\u6280\u672f\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u53ef\u4ee5\u5f88\u597d\u5730\u68c0\u6d4b\u51fa\u4f20\u8f93\u4e2d\u7684\u7a81\u53d1\u9519\u8bef\uff0c\u800c\u4e14\u5b83\u7684\u8ba1\u7b97\u6548\u7387\u5f88\u9ad8\uff0c\u5728\u6bcf\u6b21\u4f20\u8f93\u4e2d\u53ea\u9700\u8981\u82b1\u8d39\u5f88\u5c11\u7684\u65f6\u95f4\u5c31\u53ef\u4ee5\u5b8c\u6210\u6821\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

CRC16\u6821\u9a8c\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u6570\u636e\u6821\u9a8c\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u68c0\u6d4b\u51fa\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u5e76\u5728\u53d1\u73b0\u9519\u8bef\u65f6\u8fdb\u884c\u7ea0\u6b63\u3002\u5b83\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u53ef\u4ee5\u5f88\u597d\u5730\u68c0\u6d4b\u51fa\u4f20\u8f93<\/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":[151],"class_list":["post-40057","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-crc"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/40057","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=40057"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/40057\/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=40057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=40057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=40057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}