{"id":3077,"date":"2024-09-15T10:00:02","date_gmt":"2024-09-15T01:00:02","guid":{"rendered":"https:\/\/pupu-ajt.ssl-lolipop.jp\/rayfan\/?p=3077"},"modified":"2024-09-15T10:04:30","modified_gmt":"2024-09-15T01:04:30","slug":"ubuntu%e3%81%a7bluetooth%e3%82%92%e3%82%aa%e3%83%b3%e3%81%ab%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%8f%e3%81%aa%e3%81%a3%e3%81%9f%e5%a0%b4%e5%90%88%e3%81%ae%e5%af%be%e5%87%a6%e6%b3%95","status":"publish","type":"post","link":"https:\/\/pupu-ajt.ssl-lolipop.jp\/rayfan\/2024\/09\/15\/ubuntu%e3%81%a7bluetooth%e3%82%92%e3%82%aa%e3%83%b3%e3%81%ab%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%8f%e3%81%aa%e3%81%a3%e3%81%9f%e5%a0%b4%e5%90%88%e3%81%ae%e5%af%be%e5%87%a6%e6%b3%95\/","title":{"rendered":"Ubuntu\u3067Bluetooth\u3092\u30aa\u30f3\u306b\u3067\u304d\u306a\u304f\u306a\u3063\u305f\u5834\u5408\u306e\u5bfe\u51e6\u6cd5"},"content":{"rendered":"\n<p>\u90e8\u5c4b\u306e\u6a21\u69d8\u66ff\u3048\u3092\u3057\u3066Ubuntu\u5468\u308a\u306e\u30b1\u30fc\u30d6\u30eb\u306e\u914d\u7dda\u3092\u3084\u308a\u76f4\u3057\u305f\u3068\u3053\u308d<\/p>\n\n\n\n<p>Ubuntu\u306e\u8a2d\u5b9a\u3067Bluetooth\u306e\u8a2d\u5b9a\u753b\u9762\u3092\u958b\u304d\u3001\u53f3\u4e0a\u306e\u30b9\u30e9\u30a4\u30c9\u3092\u30aa\u30f3\u306b\u3057\u3066\u3082\u6570\u79d2\u3067\u30aa\u30d5\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u73fe\u8c61\u304c\u8d77\u304d\u305f\u306e\u3067\u5bfe\u51e6\u65b9\u6cd5\u3092\u5217\u6319\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"483\" height=\"506\" src=\"https:\/\/pupu-ajt.ssl-lolipop.jp\/rayfan\/wp-content\/uploads\/2024\/09\/image.png\" alt=\"\" class=\"wp-image-3079\" style=\"width:435px;height:auto\" srcset=\"https:\/\/pupu-ajt.ssl-lolipop.jp\/rayfan\/wp-content\/uploads\/2024\/09\/image.png 483w, https:\/\/pupu-ajt.ssl-lolipop.jp\/rayfan\/wp-content\/uploads\/2024\/09\/image-286x300.png 286w\" sizes=\"auto, (max-width: 483px) 100vw, 483px\" \/><\/figure>\n<\/div>\n\n\n<!--more-->\n\n\n\n<h3 class=\"wp-block-heading\">\u307e\u305a\u306fBluetooth\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d<\/h3>\n\n\n\n<p>\u30b5\u30fc\u30d3\u30b9\u304c\u52d5\u3044\u3066\u3044\u306a\u3044\u3068\u3069\u3046\u306b\u3082\u306a\u308a\u307e\u305b\u3093\u306d<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo systemctl status bluethooth<br>\u25cf bluetooth.service - Bluetooth service<br>     Loaded: loaded (\/usr\/lib\/systemd\/system\/bluetooth.service; enabled; preset: enabled)<br>     Active: <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">active (running)<\/mark> since Sun 2024-09-15 09:00:00 JST; 13min ago<br>       Docs: man:bluetoothd(8)<br>   Main PID: 1543 (bluetoothd)<br>     Status: \"Running\"<br>      Tasks: 1 (limit: 18929)<br>     Memory: 3.3M (peak: 3.7M)<br>        CPU: 52ms<br>     CGroup: \/system.slice\/bluetooth.service<br><\/pre>\n\n\n\n<p>\u30b5\u30fc\u30d3\u30b9\u304c\u8d77\u52d5\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f systemctl start bluetooth\u3067\u8d77\u52d5\u3057\u307e\u3059\u3002\u8d77\u52d5\u3067\u304d\u306a\u3044\u5834\u5408\u306f\/var\/log\/syslog\u3067\u539f\u56e0\u3092\u8abf\u3079\u307e\u3059\u3002<\/p>\n\n\n\n<p>Failed to set mode : vlocked through rfkill<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u3044\u308b\u5834\u5408\u306f\u7121\u7dda\u304c\u7121\u99c4\u306a\u96fb\u6c17\u3092\u4f7f\u7528\u3057\u306a\u3044\u3088\u3046\u306b\u30c7\u30d0\u30a4\u30b9\u3092\u7121\u52b9\u5316\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u6709\u308b\u306e\u3067RFkill\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ rfkill list<br>1: phy0: Wireless LAN<br>\tSoft blocked: no<br>\tHard blocked: no<br>2: hci0: Bluetooth<br>\tSoft blocked: <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">yes<\/mark><br>\tHard blocked: no<\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306bBluetooth\u304c\u30bd\u30d5\u30c8\u7684\u306b\u30d6\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u30d6\u30ed\u30c3\u30af\u3092\u89e3\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ rfkill unblock bluetooth<\/pre>\n\n\n\n<p>\u6bce\u56de\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u306e\u306f\u5927\u5909\u306a\u306e\u3067\u3001\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u969b\u306b\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ vi ~\/.profile<br>\u6700\u5f8c\u306b\u4ee5\u4e0b\u306e\u4e00\u6587\u3092\u8ffd\u52a0<br>rfkill unblock bluetooth<\/pre>\n\n\n\n<p>\u30ad\u30fc\u30dc\u30fc\u30c9\u304cBluetooth\u306e\u5834\u5408\u306f\u30ed\u30b0\u30a4\u30f3\u3059\u3089\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u306e\u5834\u5408\u306f\u8d77\u52d5\u6642\u306bbluetooth\u304c\u6709\u52b9\u306b\u306a\u308b\u3088\u3046\u306b\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30c7\u30d0\u30a4\u30b9\u3092\u8a8d\u8b58\u3067\u304d\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/h3>\n\n\n\n<p>\u30b5\u30fc\u30d3\u30b9\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u3063\u305f\u3089\u30c7\u30d0\u30a4\u30b9\u3092\u8a8d\u8b58\u3067\u304d\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ bluetoothctl scan on<br>No default controller available\u3000\u2190\u8a8d\u8b58\u3067\u304d\u3066\u3044\u306a\u3044\u3002<br>SetDiscoveryFilter success \u2190\u8a8d\u8b58\u3067\u304d\u3066\u3044\u308b<\/pre>\n\n\n\n<p>\u8a8d\u8b58\u3067\u304d\u3066\u3044\u306a\u3044\u5834\u5408\u306fHCI\u306e\u78ba\u8a8d\u3092\u3057\u307e\u3059\u3002HCI(Host Cotntroller Interface)\u306f\u7269\u7406\u7684\u306aBluetooth\u30c1\u30c3\u30d7\u3068Bluetooth\u30a2\u30f3\u30c6\u30ca\u3092\u63a5\u7d9a\u3057\u3066\u3044\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ hciconfig<br>hci0:\tType: Primary  Bus: USB<br>\tBD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0 <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">DOWN<\/mark> <br>\tRX bytes:0 acl:0 sco:0 events:0 errors:0<br>\tTX bytes:4 acl:0 sco:0 commands:1 errors:0<\/pre>\n\n\n\n<p>HCI\u304c\u30c0\u30a6\u30f3\u3057\u3066\u3044\u308b\u5834\u5408\u306fUP\u3057\u3066\u3042\u3052\u307e\u3059<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo hciconfig hci0 up<\/pre>\n\n\n\n<p>\u3053\u3053\u3067Can't init device hci0: Connection timed out (110)\u3000\u3068\u8868\u793a\u3055\u308c\u308b\u304b\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u304cUP RUNNING PSCAN\u306b\u306a\u3089\u306a\u3044\u5834\u5408\u306f\u30ab\u30fc\u30cd\u30eb\u304cBluetooth\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u3061\u3083\u3093\u3068\u8aad\u307f\u8fbc\u3081\u3066\u3044\u306a\u3044\u306e\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30ea\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo rmmod btusb<br>$ sudo modprobe btusb<\/pre>\n\n\n\n<p>\u30ea\u30ed\u30fc\u30c9\u304c\u6210\u529f\u3059\u308b\u3068\u81ea\u52d5\u3067HCI\u304c\u518d\u8d77\u52d5\u3057\u307e\u3059<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ hciconfig<br>hci0:\tType: Primary  Bus: USB<br>\tBD Address: 8C:C6:81:D0:1D:D9  ACL MTU: 1021:4  SCO MTU: 96:6 <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">UP RUNNING PSCAN<\/mark> <br>\tRX bytes:26598 acl:0 sco:0 events:3608 errors:0<br>\tTX bytes:821023 acl:0 sco:0 commands:3492 errors:0<br><\/pre>\n\n\n\n<p>\u3053\u306e\u72b6\u614b\u306b\u306a\u308c\u3070Bluetooth\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u306f\u305a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u90e8\u5c4b\u306e\u6a21\u69d8\u66ff\u3048\u3092\u3057\u3066Ubuntu\u5468\u308a\u306e\u30b1\u30fc\u30d6\u30eb\u306e\u914d\u7dda\u3092\u3084\u308a\u76f4\u3057\u305f\u3068\u3053\u308d Ubuntu\u306e\u8a2d\u5b9a\u3067Bluetooth\u306e\u8a2d\u5b9a\u753b\u9762\u3092\u958b\u304d\u3001\u53f3\u4e0a\u306e\u30b9\u30e9\u30a4\u30c9\u3092\u30aa\u30f3\u306b\u3057\u3066\u3082\u6570\u79d2\u3067\u30aa\u30d5\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002 \u3068\u3044\u3046\u73fe\u8c61\u304c\u8d77\u304d\u305f\u306e\u3067\u5bfe\u51e6\u65b9\u6cd5\u3092\u5217\u6319 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[23],"class_list":["post-3077","post","type-post","status-publish","format-standard","hentry","category-ubuntu-linux","tag-ubuntu-bluetooth"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pupu-ajt.ssl-lolipop.jp\/rayfan\/wp-json\/wp\/v2\/posts\/3077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pupu-ajt.ssl-lolipop.jp\/rayfan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pupu-ajt.ssl-lolipop.jp\/rayfan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pupu-ajt.ssl-lolipop.jp\/rayfan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pupu-ajt.ssl-lolipop.jp\/rayfan\/wp-json\/wp\/v2\/comments?post=3077"}],"version-history":[{"count":5,"href":"https:\/\/pupu-ajt.ssl-lolipop.jp\/rayfan\/wp-json\/wp\/v2\/posts\/3077\/revisions"}],"predecessor-version":[{"id":3084,"href":"https:\/\/pupu-ajt.ssl-lolipop.jp\/rayfan\/wp-json\/wp\/v2\/posts\/3077\/revisions\/3084"}],"wp:attachment":[{"href":"https:\/\/pupu-ajt.ssl-lolipop.jp\/rayfan\/wp-json\/wp\/v2\/media?parent=3077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pupu-ajt.ssl-lolipop.jp\/rayfan\/wp-json\/wp\/v2\/categories?post=3077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pupu-ajt.ssl-lolipop.jp\/rayfan\/wp-json\/wp\/v2\/tags?post=3077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}