{"id":1026,"date":"2024-12-03T14:47:35","date_gmt":"2024-12-03T13:47:35","guid":{"rendered":"https:\/\/olkn.myvnc.com\/?p=1026"},"modified":"2024-12-03T14:49:46","modified_gmt":"2024-12-03T13:49:46","slug":"bt-serial-console-android-linux","status":"publish","type":"post","link":"https:\/\/olkn.myvnc.com\/?p=1026","title":{"rendered":"BT Serial Console (Android->Linux)"},"content":{"rendered":"<p>&#8211; connect from android to linux box via BT (pair and eventually set key)<br \/>\n&#8211; check if serial service on linux is present: sdptool browse local<br \/>\n&#8211; note the channel above or add service via: sdptool add &#8211;channel=22 SP<br \/>\n&#8211; listen on this channel via rfcomm: rfcomm listen \/dev\/rfcomm0 22<br \/>\n&#8211; use BlueTerm on android to connect to the linux box<\/p>\n<p>Linux box side:<br \/>\nsdptool add &#8211;channel=3 SP<br \/>\nmknod -m 666 \/dev\/rfcomm0 c 216 0<br \/>\nrfcomm watch \/dev\/rfcomm0 3 \/sbin\/agetty rfcomm0 115200 linux<\/p>\n<p>Client side:<br \/>\nsdptool add &#8211;channel=3 SP<br \/>\nrfcomm connect \/dev\/rfcomm0 [SERVER_ADDR] 3<br \/>\nscreen \/dev\/rfcomm0 115200<\/p>\n<p>\/etc\/bluetooth\/rfcomm.conf:<br \/>\nrfcomm0 {<br \/>\n  # Automatically bind the device at startup<br \/>\n  bind no;<br \/>\n  # Bluetooth address of the device<br \/>\n  device 11:22:33:44:55:66;<br \/>\n  # RFCOMM channel for the connection<br \/>\n  channel 3;<br \/>\n  # Description of the connection<br \/>\n  comment &#8220;This is Device 1&#8217;s serial port.&#8221;;<br \/>\n}<\/p>\n<p>hcitool scan<br \/>\nrfcomm bind 0 20:15:12:08:62:95 1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8211; connect from android to linux box via BT (pair and eventually set key) &#8211; check if serial service on linux is present: sdptool browse local &#8211; note the channel above or add service via: sdptool add &#8211;channel=22 SP &#8211; listen on this channel via rfcomm: rfcomm listen \/dev\/rfcomm0 22 &#8211; use BlueTerm on android &hellip; <a href=\"https:\/\/olkn.myvnc.com\/?p=1026\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">BT Serial Console (Android->Linux)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,17,5,10],"tags":[35,38,46,51,79,116],"class_list":["post-1026","post","type-post","status-publish","format-standard","hentry","category-administration","category-android-software-projects","category-knowledgebase","category-sniplets","tag-administration","tag-android","tag-config","tag-debian","tag-linux","tag-server"],"_links":{"self":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/posts\/1026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1026"}],"version-history":[{"count":2,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/posts\/1026\/revisions"}],"predecessor-version":[{"id":1029,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/posts\/1026\/revisions\/1029"}],"wp:attachment":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}