目次

linux-bluetooth


用語

PDUprotocol data unitデータの単位と思われる

コマンド

l2ping

pin コードの設定 (bluez-util 2.x まで.3.x では無理)

% vi /etc/bluetooth/hcid.conf 
  ... 
 pin_helper /etc/bluetooth/echo_pin.sh 
% vi /etc/bluetooth/echo_pin.sh 
  ... 
#/bin/sh
echo "PIN:0000" 
% /etc/init.d/bluetooth restart 

hcitool

周辺ノードの検索

% hcitool scan 

周辺ノードの検索

% hcitool inq 

hciconfig

bluetooth interface の up/down

% hciconfig hci0 up 

sdptool

自分が利用可能なサービスを自分に登録

% sdptool add --channel=2 OPUSH

自分が利用可能なサービスを閲覧

% sdptool get OPUSH 

ローカルの sdpd が提供しているサービスの一覧取得

% sdptool browse 

ソフトウェア

参考資料