星期五, 1月 31, 2014

HCI Control on Raspberry Pi

1. Install libraries

sudo apt-get install libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev
libical-dev libreadline-dev

2. Download, compile and install bluez


3. Enable ssh


4. Use nmap to find ip if you don't use static ip. It is for remote control

grep ip_address /private/var/db/dhcpd_leases | cut -d= -f2 | nmap -iL - -sn


5. Use non-CSR bt 4.0 dongle

Note:
eSense d704
  *problem for becoming iBeacon
  *Do blescan. Return some results and then error is returned.

iogear bt dongle work correctly.


6. turn on pio 13 in firmeta protocol.
0x91 0x20 0x00

BLE mini:

RBL_CHAR_RX_UUID                         "713D0003-503E-4C75-BA94-3148F18D941E"
Handler 0x19

Command sequence in gatttool:
char-write-req 19 91
char-write-req 19 20
char-write-req 19 00


ref:
http://superuser.com/questions/48611/can-i-monitor-who-is-using-my-mac-os-x-internet-sharing


沒有留言: