AndroidのBluetooth Low Energy[BLE対応Android]を使ってBLEデバイスと通信しようとしています。デバイスに接続した後、サービスを検出できません。samsung galaxy s6、iphone、ipad サービスなどのいくつかの携帯電話では、サービスが検出されて表示されます。わかりませんが、一部のモバイルで動作するのはなぜですか?
BLE の場合、Raspberry pi 3 デバイスで BLUEZ5 スタックを使用します。gatt サーバーを実行するには、ボード (サーバー) で example-gatt-server.py を使用し、中央デバイス (クライアント側) にモバイルを使用しました。
example-gatt-server.py の次のリンクを使用します: https://github.com/RadiusNetworks/bluez/blob/master/test/example-gatt-server
そして、blutoothデーモンを宣伝して開始するために、次のコマンドを使用しました
$ /usr/lib/bluez5/bluetooth/bluetoothd -dE &
$ hciconfig hci0 up
$ hcitool -i hci0 cmd 0x08 0x0008 15 02 01 1a 11 07 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 00 00 00 00 00 00 00 00 00 00
$ hciconfig hci0 leadv 0
$ python example-gatt-server &