LoginSignup
58
55

More than 5 years have passed since last update.

BLEのデバッグツールまとめ

Last updated at Posted at 2016-07-19

Android

nRF Connect for Mobile

  • アドバタイズのスキャン
  • 接続
  • サービスとキャラクタリスティック一覧取得
  • キャラクタリスティックのリードライト
  • Peripheral化
    • Nexus6など比較的新しい端末で無いと動作しない
      • Nexus5はNG
    • スキャンして見つけたデバイスのアドバタイズ模倣も可能

iOS

LightBlue Explorer

Key Features:
- Scan for any peripherals
- Grab basic device info (UUID, RSSI )
- Browse Characteristics and Services
- Register for Notifications
- Read Characteristics
- Write to Characteristics in Hex, Oct, Bin, Decimal or Ascii
- Clone peripheral profiles
- Choose from an array of common preconfigured peripheral profiles
- Advertise as a peripheral using custom profiles
- Thoroughly log BLE events

Mac

Bluetooth Explorer と PacketLogger

Hardware IO Tools for Xcode に含まれている。

Bluetooth Explorer

詳細は こちら をご参照。

Bluetooth Low Energy のデバイスをスキャン、接続し、提供するサービス/キャラクタリスティックを確認 することができます。

PacketLogger

詳細は こちら をご参照。

Mac内部のBTコントローラとのやりとり(HCI)をダンプして、アドバタイズや接続、リードライトを確認できます。

LightBlue

Key Features:
- Scan for any peripherals
- Browse Characteristics and Services
- Register for Notifications
- Read Services
- Write Services in Hex or Ascii

詳細は こちら をご参照。
できることは Bluetooth Explorer と同等だけど、こちらの方が操作しやすいかも。

Linux

hcidump

BTコントローラとのやりとり(HCI)をダンプできます。

あらかじめ

sudo hcidump &

しておき、BLE周りの通信をおこなえばダンプされます。

gatttool

接続して対話的にGATTアクセスできます。

hciconfig

HCIコマンドが通らなくなったとき、

sudo hciconfig hci0 off && sudo hciconfig hci0 on

でリセットかけます。

hci0は環境によって異なるので、あらかじめ

hciconfig

でご確認下さい。

Windows

Bluefruit LE Sniffer

とても安価(3千円ぐらい)なBLEスニファーです。
実際のBLE電波をキャプチャして可視化できるので、解析効率が段違いです。
(BLEの規格書と睨めっこすることになりますが…)

Adafruit から購入できますが、すぐ欲しい場合は スイッチサイエンス でも取り扱いがあります。

58
55
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
58
55