{"id":2699,"date":"2023-08-15T11:40:08","date_gmt":"2023-08-15T10:40:08","guid":{"rendered":"https:\/\/ibex.tech\/resources\/?p=2699"},"modified":"2023-08-15T11:40:41","modified_gmt":"2023-08-15T10:40:41","slug":"hc-05-transparent-link","status":"publish","type":"post","link":"https:\/\/ibex.tech\/resources\/geek-area\/communications\/bluetooth-communications\/bluetooth-modules\/hc-05-transparent-link","title":{"rendered":"HC-05 transparent link"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Transparent link using two HC-05&#8217;s<\/h4>\n\n\n\n<p>Configure one as the slave, by following the instructions on our <a rel=\"noreferrer noopener\" href=\"https:\/\/arduino-developer.com\/arduino\/hardware\/programmers\/wireless-programming\/bluetooth-wireless-arduino-programming-using-the-hc-05\" target=\"_blank\">other page over here<\/a>.<\/p>\n\n\n\n<p>Configure the other as master, using these config commands:<\/p>\n\n\n\n<p>Return the HC05 to its default manufacture settings (hold button when sending): AT+ORGL\\r\\n<\/p>\n\n\n\n<p>Set role to Master: AT+ROLE=1\\r\\n<\/p>\n\n\n\n<p>Change comms settings: AT+UART=115200,0,0\\r\\n<\/p>\n\n\n\n<p>Changes the baud rate to 115200 baud, 1stop bit, no parity (or whatever setting you want).<\/p>\n\n\n\n<p>Cycle the power.<\/p>\n\n\n\n<p>Hey presto, the modules will connect when both are powered and pass data as a seamless bridge in both directions.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Pairing<\/h5>\n\n\n\n<p>By default the master HC-05 will connect to any device in its transmission range, but of course that isn&#8217;t what you want to have happen in real use. Instead do this to configure the master to pair with only the specific HC-05 slave you are using:<\/p>\n\n\n<p>Slave HC-05<\/p>\n<p style=\"padding-left: 40px;\">Read the Bluetooth address: AT+ADDR?\\r\\n<\/p>\n<p style=\"padding-left: 40px;\">You will get back an address like this:<\/p>\n<p style=\"padding-left: 80px;\">+ADDR:98D3:51:F63A39\\r\\n<br \/>OK\\r\\n<\/p>\n<p>Master HC-05<\/p>\n<p style=\"padding-left: 40px;\">Change the HC-05 to fixed address mode: AT+CMODE=0\\r\\n<br \/><em>So it won&#8217;t auto-connect to any other device in range<\/em><\/p>\n<p style=\"padding-left: 40px;\">Set the address of the slave to pair with: AT+BIND=98D3,51,F63A39\\r\\n<br \/><em>Note that you need to use commas instead of colons here.<\/em><\/p>\n\n\n<h5 class=\"wp-block-heading\">Connected<\/h5>\n\n\n\n<p>Connecting seems to take approx 4 seconds from when the master is powered up, it&#8217;s not instant.<\/p>\n\n\n\n<p>When using a pair of HC-05&#8217;s, the connection remains made even when no data is passing (the STATE pin changes to connected at the slave a few seconds after the master is power on and doesn&#8217;t release until a few seconds after the master HC-05 is powered down.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Transparent link using two HC-05&#8217;s Configure one as the slave, by following the instructions on our other page over here. Configure the other as master, using these config commands: Return the HC05 to its default manufacture settings (hold button when sending): AT+ORGL\\r\\n Set role to Master: AT+ROLE=1\\r\\n Change comms settings: AT+UART=115200,0,0\\r\\n Changes the baud rate [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140],"tags":[],"class_list":["post-2699","post","type-post","status-publish","format-standard","hentry","category-bluetooth-modules"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/posts\/2699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/comments?post=2699"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/posts\/2699\/revisions"}],"predecessor-version":[{"id":2701,"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/posts\/2699\/revisions\/2701"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/media?parent=2699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/categories?post=2699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/resources\/wp-json\/wp\/v2\/tags?post=2699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}