hciconfig

[root@localhost lyd]# hciconfig
hci0:    Type: BR/EDR  Bus: USB
    BD Address: 00:1A:7D:DA:71:13  ACL MTU: 310:10  SCO MTU: 64:8
    DOWN
    RX bytes:547 acl:0 sco:0 events:27 errors:0
    TX bytes:384 acl:0 sco:0 commands:27 errors:0

[root@localhost lyd]# hciconfig hci0 up piscan
[root@localhost lyd]# hciconfig
hci0:    Type: BR/EDR  Bus: USB
    BD Address: 00:1A:7D:DA:71:13  ACL MTU: 310:10  SCO MTU: 64:8
    UP RUNNING PSCAN ISCAN
    RX bytes:1130 acl:0 sco:0 events:60 errors:0
    TX bytes:1040 acl:0 sco:0 commands:60 errors:0

[root@localhost lyd]# hcitool lescan

 

gatttool -i hci0 -t random -b E1:99:4B:CB:7D:30 -a 0x0f -n 0100 --listen --char-write-req

posted on 2018-01-03 09:34  lydstory  阅读(402)  评论(0编辑  收藏  举报

导航