wiki:IntelEdisonPhysicalWebBeacon

Version 8 (modified by sgk, 9 years ago) ( diff )

--

Intel Edisonのトップに戻る

Intel Edison で Physical Web のビーコン

Intel EdisonをPhysical Webのビーコンにする。

必要な物:

事前準備

# opkg install git
# opkg install bluez5-dev

貴重なrootファイルシステムをだいぶ食うので注意する。

root@sgk-edison:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root               475080    370888     67496  85% /
devtmpfs                491736         0    491736   0% /dev
tmpfs                   492048         0    492048   0% /dev/shm
tmpfs                   492048       496    491552   0% /run
tmpfs                   492048         0    492048   0% /sys/fs/cgroup
tmpfs                   492048       496    491552   0% /etc/machine-id
systemd-1                 5638      5184       454  92% /boot
tmpfs                   492048         4    492044   0% /tmp
systemd-1              2337308     35404   2285520   2% /home
tmpfs                   492048         0    492048   0% /var/volatile
/dev/mmcblk0p5            1003        19       913   2% /factory
/dev/mmcblk0p10        2337308     35404   2285520   2% /home
/dev/mmcblk0p7            5638      5184       454  92% /boot

node-uri-beaconをインストール

# git clone https://github.com/don/node-uri-beacon.git
# cd node-uri-beacon/
# npm install

途中、blenoのビルドにちょっと時間がかかる。 ときどきビルドに失敗するが、原因不明。

ホームディレクトリに「0.10.28」とかいうディレクトリができるけど、削除していい。

実行

Bluetoothを使えるようにする。

# rfkill unblock bluetooth

ビーコンを起動する。

# cd examples
# node simpleBeacon.js

スマートフォンにPhysical Webアプリをインストールする。 Phsical Webアプリを起動すると、ビーコンが見えるはず。 広告するURLは、この「simpleBeacon.js」の中に書いてある。 適当に変更してOK。あまり長いURLはダメらしい。


2014/11/2

Attachments (2)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.