忍者ブログ

レバノン13日共同

超不定期日記。

[PR]

×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

コメント

現在、新しいコメントを受け付けない設定になっています。

catholic church selma tx

I found your weblog web site on google and check a couple of of your early posts. Proceed to maintain up the superb operate. I just further up your RSS feed to my MSN Information Reader. In search of forward to studying more from you in a while!… http://hellowh983mm.com

Raspberry Pi 3のBluetoothでBLE Peripheral(bleno)を試してみる

タイトルままなのだが、Raspberry Pi 3にBluetooth 4.0が内蔵されたので、BLE Peripheralの実装を試してみた。
Get Startedな部分をQiitaにまとめた。

Raspberry Pi 3のBluetoothでBLE Peripheral(bleno)を試してみるhttp://qiita.com/uzuki_aoba/items/346e28b6e9170ce85a6c

実際、node.jsのバージョン周りで難儀してここが一番辛かった。
都合の悪いことに、raspbianにはnode-redが入っている関係で、v0.11付近(バージョンは忘れた)が入っている。
blenoがビクともしないので、nodebrewを入れてバージョン変更を試みるも、当初はnode-red用に入っている方からnodebrewの方に切り替わらず、キーー〜となった。
まぁ、rebootしたら解決という、初歩ではあるのだが。

nodebrewで切り替えて、v0.12〜v5.xで試して、とりあえず安定して動いたのがv4.4.3だった。
この辺りは知見がないので、もっと明確な情報があるかも。

動いてからは何もせずともOKなレベル。

Raspberry Pi 3ではBLEとともにWiFiが使えるので、IoT的なサムシングをプロトタイピングするには最適だと思う(小並感



余談だが、node.js のv0.12系はarmv7用のバイナリがnodejs.orgにあがっていなかったので、渋々 nodebrew install してビルドからやった。
やったところ、Raspberry Pi3の SoCが70℃近くまで行った。。。
PR

コメント

お名前
タイトル
文字色
メールアドレス
URL
コメント
パスワード Vodafone絵文字 i-mode絵文字 Ezweb絵文字

catholic church selma tx

I found your weblog web site on google and check a couple of of your early posts. Proceed to maintain up the superb operate. I just further up your RSS feed to my MSN Information Reader. In search of forward to studying more from you in a while!… http://hellowh983mm.com

カレンダー

03 2024/04 05
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

最新コメント

[02/09 TimothyKl]
[08/15 xbhusrgdxp]
[08/14 abhbrwmqui]

ブログ内検索

カウンター

アクセス解析

PR