{"id":39978,"date":"2023-10-05T04:28:08","date_gmt":"2023-10-04T20:28:08","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=39978"},"modified":"2023-10-05T04:28:08","modified_gmt":"2023-10-04T20:28:08","slug":"grhsyrsxm","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/39978.html","title":{"rendered":"GD32\u5982\u4f55\u4f7f\u7528RS485\u5b9e\u73b0Modbus"},"content":{"rendered":"
GD32\u662f\u4e00\u79cd\u5e38\u7528\u768432\u4f4d\u5fae\u63a7\u5236\u5668\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7RS485\u63a5\u53e3\u5b9e\u73b0Modbus\u901a\u8baf\uff0c\u4e3a\u8bbe\u5907\u95f4\u7684\u6570\u636e\u4f20\u8f93\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u3001\u53ef\u9760\u7684\u65b9\u5f0f\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528GD32\u7684RS485\u63a5\u53e3\u5b9e\u73b0Modbus\u901a\u8baf\uff0c\u5e2e\u52a9\u8bfb\u8005\u5feb\u901f\u638c\u63e1\u5b9e\u73b0Modbus\u7684\u77e5\u8bc6\u3002<\/p>\n
Modbus\u662f\u4e00\u79cd\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u662f\u4e00\u79cd\u7b80\u5355\u3001\u7075\u6d3b\u3001\u53ef\u9760\u7684\u901a\u4fe1\u65b9\u5f0f\uff0c\u53ef\u4ee5\u7528\u4e8e\u8bbe\u5907\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002\u5b83\u7684\u7279\u70b9\u662f\u652f\u6301\u591a\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u652f\u6301\u591a\u79cd\u901a\u4fe1\u534f\u8bae\uff0c\u5e76\u4e14\u652f\u6301\u591a\u79cd\u4f20\u8f93\u4ecb\u8d28\uff0c\u5982RS485\u3001RS232\u7b49\u3002Modbus\u534f\u8bae\u7684\u7ed3\u6784\u4e5f\u975e\u5e38\u7b80\u5355\uff0c\u53ef\u4ee5\u5feb\u901f\u5b9e\u73b0\u8bbe\u5907\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002<\/p>\n
GD32\u652f\u6301RS485\u63a5\u53e3\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b83\u5b9e\u73b0Modbus\u901a\u8baf\u3002RS485\u63a5\u53e3\u662f\u4e00\u79cd\u5e38\u7528\u7684\u4e32\u884c\u901a\u4fe1\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u652f\u6301\u591a\u8fbe256\u4e2a\u8282\u70b9\u7684\u6570\u636e\u4f20\u8f93\uff0c\u800c\u4e14\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u4e0d\u53d7\u5e72\u6270\uff0c\u53ef\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u53ef\u9760\u6027\u3002<\/p>\n
\u5728\u4f7f\u7528GD32\u7684RS485\u63a5\u53e3\u5b9e\u73b0Modbus\u901a\u8baf\u4e4b\u524d\uff0c\u9996\u5148\u8981\u51c6\u5907\u597d\u6240\u9700\u8981\u7684\u786c\u4ef6\u548c\u8f6f\u4ef6\uff0c\u5305\u62ec\uff1a<\/p>\n
\u5b89\u88c5RS485\u63a5\u53e3\u65f6\uff0c\u9700\u8981\u5c06RS485\u63a5\u53e3\u7684RXD\u548cTXD\u7ebf\u8fde\u63a5\u5230GD32\u5fae\u63a7\u5236\u5668\u7684UART\u63a5\u53e3\uff0c\u7136\u540e\u5c06RS485\u63a5\u53e3\u7684GND\u7ebf\u8fde\u63a5\u5230GD32\u5fae\u63a7\u5236\u5668\u7684GND\u5f15\u811a\uff0c\u6700\u540e\u5c06RS485\u63a5\u53e3\u7684VCC\u7ebf\u8fde\u63a5\u5230GD32\u5fae\u63a7\u5236\u5668\u7684VCC\u5f15\u811a\u3002<\/p>\n
\u5b89\u88c5\u5b8cRS485\u63a5\u53e3\u540e\uff0c\u5c31\u53ef\u4ee5\u7f16\u5199Modbus\u534f\u8bae\u7a0b\u5e8f\u4e86\u3002Modbus\u534f\u8bae\u7a0b\u5e8f\u7684\u7f16\u5199\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u8c03\u7528\u6807\u51c6\u7684Modbus\u5e93\u51fd\u6570\u5373\u53ef\u5b9e\u73b0\u3002\u5728\u7f16\u5199Modbus\u534f\u8bae\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n
\u5b8c\u6210Modbus\u534f\u8bae\u7a0b\u5e8f\u7684\u7f16\u5199\u540e\uff0c\u5c31\u53ef\u4ee5\u8fdb\u884cModbus\u901a\u8baf\u7684\u6d4b\u8bd5\u4e86\u3002\u5728\u6d4b\u8bd5Modbus\u901a\u8baf\u65f6\uff0c\u9700\u8981\u786e\u4fddRS485\u63a5\u53e3\u7684\u8fde\u63a5\u6b63\u786e\uff0c\u5e76\u4e14\u786e\u4fddModbus\u534f\u8bae\u7a0b\u5e8f\u7684\u6b63\u786e\u6027\u3002\u5982\u679cModbus\u901a\u8baf\u6d4b\u8bd5\u6210\u529f\uff0c\u5c31\u8bf4\u660e\u5b9e\u73b0Modbus\u901a\u8baf\u6210\u529f\u4e86\u3002<\/p>\n
\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528GD32\u7684RS485\u63a5\u53e3\u5b9e\u73b0Modbus\u901a\u8baf\uff0c\u4ece\u51c6\u5907\u5de5\u4f5c\u3001\u5b89\u88c5RS485\u63a5\u53e3\u3001\u7f16\u5199Modbus\u534f\u8bae\u7a0b\u5e8f\u5230\u6d4b\u8bd5Modbus\u901a\u8baf\uff0c\u6bcf\u4e00\u6b65\u90fd\u975e\u5e38\u91cd\u8981\uff0c\u90fd\u9700\u8981\u4ed4\u7ec6\u68c0\u67e5\u3002<\/strong>\u53ea\u6709\u5f53\u6240\u6709\u6b65\u9aa4\u90fd\u6b63\u786e\u5b8c\u6210\u540e\uff0c\u624d\u80fd\u4fdd\u8bc1Modbus\u901a\u8baf\u7684\u6210\u529f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" GD32\u662f\u4e00\u79cd\u5e38\u7528\u768432\u4f4d\u5fae\u63a7\u5236\u5668\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7RS485\u63a5\u53e3\u5b9e\u73b0Modbus\u901a\u8baf\uff0c\u4e3a\u8bbe\u5907\u95f4\u7684\u6570\u636e\u4f20\u8f93\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u3001\u53ef\u9760\u7684\u65b9\u5f0f\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528GD32\u7684RS485<\/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":[61],"class_list":["post-39978","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-r"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/39978","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=39978"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/39978\/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=39978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=39978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=39978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}