跳到主要內容

發表文章

目前顯示的是 8月, 2016的文章

樹梅派的BLE

樹梅派3 終於內建藍牙了,要通起來真是痛苦 經過了網路搜尋 如下是有用的文章 這裡說到 先打開這一行 就可以將藍牙 進入4.0 ibeancon 模式 https://www.raspberrypi.org/forums/viewtopic.php?f=41&t=139689 sudo hcitool cmd 0x08 0x000A 01 Creating a Gatt Server? 一些些有用 http://stackoverflow.com/questions/19549555/creating-a-gatt-server 這個範例最有用 https://www.hackster.io/inmyorbit/build-a-mobile-app-that-connects-to-your-rpi-3-using-ble-7a7c2c http://gaiger-programming.blogspot.tw/2015/01/bluetooth-low-energy-customizing-gatt.html 透過node.js 弄一個Beacon http://blog.itist.tw/2016/04/using-raspberry-pi-3-to-build-eddystone-beacons-with-raspbian-jessie.html 但假如要自己建立自己的 GATT Server, 讓 Edison 當作 BLE Peripheral 的話, 就建議自己寫 code, 網路上看到一個滿方便的方式是利用 node.js module 叫做 bleno 的方式 http://thinkingiot.blogspot.tw/2015/05/intel-iot-solution-edison-ble-usb-demo.html 原來BLE 需要的是NODE裡的 bleno http://thinkingiot.blogspot.tw/2015/05/intel-iot-solution-edison-ble-usb-demo_8.html 這裡有所有服務的範例 https://github.com/sandeepmistry/bleno/blob/master/test.js