paypal / gatt

Gatt is a Go package for building Bluetooth Low Energy peripherals
BSD 3-Clause "New" or "Revised" License
1.13k stars 284 forks source link

device hang up after each run #63

Closed optman closed 8 months ago

optman commented 8 years ago

On linux platform, the first run of examples will success. But after Ctrl+C to break out and run again, it will hung up like this.

$ sudo ./explorer "XX:XX:XX:XX:XX:XX" 2016/01/28 07:41:07 dev: hci0 up 2016/01/28 07:41:07 dev: hci0 down 2016/01/28 07:41:07 dev: hci0 opened

no output anymore, even reboot will not resolve the problem. after reboot, lsusb command show that the Bluetooth dongle is disappear. it need to unplug the dongle and plug again to work again.

look like a hardware problem?