{"id":2109,"date":"2015-06-25T17:31:52","date_gmt":"2015-06-25T17:31:52","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=2109"},"modified":"2026-06-17T09:15:25","modified_gmt":"2026-06-17T08:15:25","slug":"serial-over-bluetooth","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/pi-operating-systems\/raspbian\/bluetooth\/serial-over-bluetooth","title":{"rendered":"Serial over Bluetooth"},"content":{"rendered":"<p>\n&nbsp;\n<\/p>\n<p>\nOnce you have your RPi paired with another device you have a Bluetooth link, but&nbsp;you still need to set up another protocol over the Bluetooth called &quot;RFCOMM&quot; to provide an emulated serial connection between the&nbsp;two devices.\n<\/p>\n<h4>\nSetting The RPi to create a serial connection to a Bluetooth device at startup<br \/>\n<\/h4>\n<p>\nEnter the command:\n<\/p>\n<pre>\r\n<code>\r\nsudo nano \/etc\/bluetooth\/rfcomm.conf\r\n<\/code><\/pre>\n<p>\nAdd the connection details:\n<\/p>\n<pre>\r\n<code>\r\nrfcomm1 {\r\n    # Automatically bind the device at startup\r\n    bind yes;\r\n\r\n   # Bluetooth address of the device\r\n    device xx:xx:xx:xx:xx:xx;\r\n\r\n    # RFCOMM channel for the connection\r\n    channel 1;\r\n\r\n    # Description of the connection\r\n    comment &quot;My Bluetooth Connection&quot;;\r\n}\r\n<\/code><\/pre>\n<h4>\nCreating A Serial Link Via Bluetooth To A PC Running Windows<br \/>\n<\/h4>\n<p>\nFollow the RPI steps to setup the rfcom link at its end.\n<\/p>\n<p>\nOpen the Windows Control Panel. &nbsp;In&nbsp;search box, type &quot;Bluetooth&quot;, and then click &quot;Change Bluetooth settings&quot;.\n<\/p>\n<p>\nIn the Bluetooth Settings dialog box, click the COM Ports tab, select a port, and then click OK. &nbsp;If no COM port is listed, then setup Windows to accept a connection by pressing&nbsp;&quot;Add&quot;, and then select &quot;Incoming&quot;. &nbsp;OK and exit. &nbsp;Windows should then see the RPi serial connection after a few seconds and create a serial port automatically for it (you see a taskbar message its happened and the new COM port appears in device manager).\n<\/p>\n<p>\nAdding The RPi From Windows\n<\/p>\n<p style=\"margin-left: 40px;\">\nIn Devices and printers use &#39;Add Device&#39; and if the RPi is in pairing mode it should find the RPi.\n<\/p>\n<p style=\"margin-left: 40px;\">\nOnce the device is added and windows has finished adding drivers (can take quite a a while &#8211; wait for the taskbar device added message), right click the RPi in device and select properties. &nbsp;In the &#39;Services&#39; tab there should be a servicee&nbsp;for serial, e.g. &#39;serial port SSP&#39;. &nbsp;Ensure it is enabled. &nbsp;If there isn&#39;t then there is likely a problem. <span style=\"color:#FF0000;\"><em>&lt;&lt;&lt; We got stuck here and had to give up due to time constraints&nbsp;as this was the case for us<\/em><\/span>\n<\/p>\n<h4>\nSend serial from the RPi command line<br \/>\n<\/h4>\n<pre>\r\n<code>\r\necho &quot;Hello&quot; &gt; \/dev\/rfcomm0\r\n<\/code><\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Once you have your RPi paired with another device you have a Bluetooth link, but&nbsp;you still need to set up another protocol over the Bluetooth called &quot;RFCOMM&quot; to provide an emulated serial connection between the&nbsp;two devices. Setting The RPi to create a serial connection to a Bluetooth device at startup Enter the command: sudo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[100],"tags":[],"class_list":["post-2109","post","type-post","status-publish","format-standard","hentry","category-bluetooth"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=2109"}],"version-history":[{"count":7,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2109\/revisions"}],"predecessor-version":[{"id":2146,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2109\/revisions\/2146"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=2109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=2109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=2109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}