{"id":9389,"date":"2013-09-18T22:41:47","date_gmt":"2013-09-18T13:41:47","guid":{"rendered":"http:\/\/www.e-nekorakuen.net\/?p=9389"},"modified":"2017-04-27T15:04:57","modified_gmt":"2017-04-27T06:04:57","slug":"raspberry-pi-%ef%bc%88bluetooth%e3%82%b9%e3%83%94%e3%83%bc%e3%82%ab%e3%83%bc%e6%8e%a5%e7%b6%9a%e7%b7%a8%ef%bc%89raspberry-pi%e3%81%a7bluetooth%e3%82%b9%e3%83%94%e3%83%bc%e3%82%ab%e3%83%bc","status":"publish","type":"post","link":"https:\/\/www.e-nekorakuen.net\/?p=9389","title":{"rendered":"Raspberry Pi \uff08Bluetooth\u30b9\u30d4\u30fc\u30ab\u30fc\u63a5\u7d9a\u7de8\uff09\u2026Raspberry Pi\u3067Bluetooth\u30b9\u30d4\u30fc\u30ab\u30fc\u3092\u9cf4\u3089\u3059\u3002"},"content":{"rendered":"<p>AS-BT100\uff08Pioneer\uff09\u306e\u4f8b\u3067\u3059\u304c\u3001\u4ed6\u306eBluetooth\u30b9\u30d4\u30fc\u30ab\u30fc\u3067\u3082OK\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9390\" src=\"http:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/04\/Aukey-SK-M8-review-01-600x351-300x176.jpg\" alt=\"\" width=\"300\" height=\"176\" srcset=\"https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/04\/Aukey-SK-M8-review-01-600x351-300x176.jpg 300w, https:\/\/www.e-nekorakuen.net\/wp-content\/uploads\/2017\/04\/Aukey-SK-M8-review-01-600x351.jpg 600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\n1.Bluetooh\u30c9\u30f3\u30b0\u30eb\u63a5\u7d9a \u2190 Raspberry Pi B+\u306a\u3089\u5185\u8535<br \/>\nPlanex BT-MicroEDR2X\u7b49<br \/>\n2.Bluetooth\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# apt-get install bluetooth bluez-utils bluez-alsa blueman<br \/>\n3.\u518d\u8d77\u52d5<br \/>\n# reboot<br \/>\n\u30c9\u30f3\u30b0\u30eb\u306eLED\u304c\u70b9\u6ec5\u3057\u59cb\u3081\u308c\u3070\u3001\u30c9\u30f3\u30b0\u30eb\u304c\u8a8d\u8b58\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n# lsusb<br \/>\n\u30c9\u30f3\u30b0\u30eb\u306e\u30c7\u30d0\u30a4\u30b9\u540d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n4.Bluetooth\u30b9\u30d4\u30fc\u30ab\u30fc\u3092\u30da\u30a2\u30ea\u30f3\u30b0\u30e2\u30fc\u30c9\u306b\u3059\u308b\u3002<br \/>\nBTA\u30dc\u30bf\u30f3\u3001\u25b7 \u306e\u9806\u306b\u62bc\u3059\u3068BT AUDIO\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u304c\u70b9\u6ec5\u3057\u307e\u3059\u3002<br \/>\n5.Bluetooth\u30c7\u30d0\u30a4\u30b9\u306e\u767b\u9332<br \/>\n\u2460Desktop\uff08or VNC\u30d3\u30e5\u30a2\uff09 &gt; \u30e1\u30cb\u30e5\u30fc &gt; \u8a2d\u5b9a\u304b\u3089Bluetooth Manager\u3092\u8d77\u52d5<br \/>\n\u2461\u691c\u7d22\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3002<br \/>\n\u2462AS-BT100\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u30a2\u30c9\u30ec\u30b9\uff08\u4f8b\uff1a10:B7:F6:01:54:7A\uff09\u3092\u30b3\u30d4\u30fc\u3059\u308b\u3002<br \/>\n\u2463\u53f3\u30af\u30ea\u30c3\u30af\u3067setup\u3092\u8d77\u52d5\u3001Use Custom PassKey\u306b\u30d1\u30b9\u30ad\u30fc\u3092\u5165\u529b\u3001[\u9032\u3080]\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3002<br \/>\n\u63a5\u7d9a:A2DP Sink\uff08Send Audio\uff09\u3092\u9078\u629e\u3057\u3066\u3001[\u9032\u3080]\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3002<br \/>\n\u30d1\u30b9\u30ad\u30fc\u304c\u8a8d\u8a3c\u3055\u308c\u3066\u3001AS-BT100\u306b\u81ea\u52d5\u7684\u306b\u63a5\u7d9a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u2464\u6b21\u56de\u304b\u3089\u306f\u3001\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066Audio Sink\u3067\u63a5\u7d9a\u3057\u307e\u3059\u3002<br \/>\n6.~\/.asoundrc \u3092\u4f5c\u6210\u3059\u308b\u3002<br \/>\n# nano ~\/.asoundrc<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\npcm.!bluetooth {<br \/>\ntype bluetooth<br \/>\ndevice &#8220;10:B7:F6:01:54:7A&#8221;<br \/>\nprofile &#8220;auto&#8221;<br \/>\n}<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n7.~\/.asoundrc \u3092\/etc\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3002<br \/>\n# cp ~\/.asoundrc \/etc\/asound.conf<br \/>\n8.\/etc\/bluetooth\/audio.conf \u3092\u7de8\u96c6\u3059\u308b\u3002<br \/>\n# nano \/etc\/bluetooth\/audio.conf<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n[General]\nEnable=Source,Sink,Headset,Gateway,Control,Socket,Media\u3000\u2190\u8ffd\u8a18<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n9.bluetooth\u30c7\u30fc\u30e2\u30f3\u518d\u8d77\u52d5<br \/>\n# \/etc\/init.d\/bluetooth restart<br \/>\n10.\u518d\u751f<br \/>\n$ mplayer -ao\u3000alsa:device=bluetooth \/mnt\/usbssd\/music\/test.mp3<br \/>\nMPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team<\/p>\n<p>Playing test.mp3.<br \/>\nlibavformat version 53.21.1 (external)<br \/>\nMismatching header version 53.19.0<br \/>\nAudio only file format detected.<br \/>\nLoad subtitles in .\/<br \/>\n==========================================================================<br \/>\nRequested audio codec family [mpg123] (afm=mpg123) not available.<br \/>\nEnable it at compilation.<br \/>\nOpening audio decoder: [ffmpeg] FFmpeg\/libavcodec audio Recoders<br \/>\nlibavcodec version 53.35.0 (external)<br \/>\nMismatching header version 53.32.2<br \/>\nAUDIO: 44100 Hz, 2 ch, floatle, 128.0 kbit\/4.54% (ratio: 16000-&gt;352800)<br \/>\nSelected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)<br \/>\n==========================================================================<br \/>\n[AO_ALSA] Format floatle is not supported by hardware, trying default.<br \/>\nAO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)<br \/>\nVideo: no video<br \/>\nStarting playback&#8230;<br \/>\nA: 68.5 (01:08.5) of 190.0 (03:10.0) 8.1%<\/p>\n<p>\u2026\u3053\u3093\u306a\u8868\u793a\u304c\u51fa\u3066Bluetooth\u30b9\u30d4\u30fc\u30ab\u30fc\u304b\u3089\u97f3\u304c\u51fa\u308c\u3070OK<\/p>\n<p>11.\u4ed6\u306eBluetooth\u30c7\u30d0\u30a4\u30b9\u306e\u5229\u7528<br \/>\nBluetooth\u30c7\u30d0\u30a4\u30b9\u306e\u767b\u9332\u3092\u3059\u308c\u3070\u3001Bluetooth\u30de\u30a6\u30b9\u3001Bluetooth\u30ad\u30fc\u30dc\u30fc\u30c9\u306a\u3069\u3082\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AS-BT100\uff08Pioneer\uff09\u306e\u4f8b\u3067\u3059\u304c\u3001\u4ed6\u306eBluetooth&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":9390,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","_veu_custom_css":"","veu_display_promotion_alert":"","footnotes":""},"categories":[32],"tags":[],"class_list":["post-9389","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=\/wp\/v2\/posts\/9389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9389"}],"version-history":[{"count":0,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=\/wp\/v2\/posts\/9389\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=\/wp\/v2\/media\/9390"}],"wp:attachment":[{"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.e-nekorakuen.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}