2015年2月2日 星期一

2015/02/02 AllSeen /AllJoyn in openwrt 12.09 with TP-Link 1043nd V1

最近開始研究 AllSeen 也就是Alljoyn.

我的測試機器為TP-Link1043nd V1 ,上面跑的OS為 openwrt 12.09的版本,
並不是原生TPLink的 OS哦!




從openwrt 12.09 開始,openwrt 就有支援 allseen 的package ,

以下步驟可以把allseen加入到 openwrt的package 並編譯出來

STEP  :

  ps1:TOP_ROOT 為 openwrt tool chain 的根目錄

   cd $TOP_ROOT 
 
     把
   src-git alljoyn https://git.allseenalliance.org/gerrit/core/openwrt_feed;openwrt_12.09

     這行加入 feed.conf.default內

     ./script/feeds update -a
     ./script/feeds install -a -p alljoyn

     sudo make menuconfig

     到 Network-> 找到 alljoyn 並把他勾選到 *   且 勾選在 Network->alljoyn-> alljoyn-sampe_apps

    ps2: * 為 在編譯firmware時會自動燒錄進去,而 M 為編譯但不燒錄到firmware

    好了之後保存離開menuconfig

    最後  sudo make V=99 等編譯結束就大功告成囉!


    之後可以在TP-Link1043nd 的 /usr/bin 中發現多了很多執行檔

    ex: ACServerSample  ,  ServerSample  ...


    ACServerSample 演示了Alljoyn的所有功能 像是 Notification,About Service, Config...

   算是比較完整的一個Sample。

    ACServerSample ,的 source code 放在 $TOP_DIR/build_dir/target-$CPU ..../alljoyn-sample_apps

    之後等我研究的透徹一些會來記錄一下alljoyn的架構。


    如果要測試ACServerSample有沒有功能,可以到allseen的官方網站下載Android的SDK(因為我  
    是使用android device, IOS沒有測試過) 並在SDK中找到 ControlPanelBrowser這個APK並把他

    安裝到妳的Android Device中,這樣一來只要把你的Android Device連到TPLINK的WIFI上,

   且讓ACSserverSample執行,並且打開ControlPanelBrowser 就可以看到功能囉~




沒有留言:

張貼留言