noble / bleno

A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals
MIT License
2.12k stars 447 forks source link

Getting device "Device Disconnected" message #399

Open KishorThube opened 6 years ago

KishorThube commented 6 years ago

Getting device "Device Disconnected" message

Hi @sandeepmistry

I am running a one peripheral using a bleno on my system having:

    • OS - Linux (Ubuntu)
    • OS - Version - 18.*
    • Bluez-Version: 5.48-0ubuntu3.1

I'm able to publish the peripheral and seeing all the characteristics I have assigned to my service. I'm able to connect peripheral and performing a read-write operation on characteristics. But after a few time, I always get the device "Device Disconnected" message. When I checked hcidump log It shows it shows the same error message that "Device Disconnected".

When I tried to re-run now I am not able to "hci0" device.

Any help??

hcidump -t -x log

2018-07-13 11:03:33.683155 < ACL data: handle 3585 flags 0x00 dlen 26 ATT: Read By Type resp (0x09) length: 20 handle 0x0003, value 0x6b 0x69 0x73 0x68 0x6f 0x72 0x2d 0x56 0x6f 0x73 0x74 0x72 0x6f 0x2d 0x33 0x35 0x35 0x39 2018-07-13 11:03:33.742167 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 3585 packets 1 2018-07-13 11:03:34.881794 > ACL data: handle 3585 flags 0x02 dlen 9 ATT: Write req (0x12) handle 0x000d value 0x02 0x00 2018-07-13 11:03:34.883790 < ACL data: handle 3585 flags 0x00 dlen 5 ATT: Write resp (0x13) 2018-07-13 11:03:34.942162 > HCI Event: Number of Completed Packets (0x13) plen 5 handle 3585 packets 1 2018-07-13 11:03:38.517662 > ACL data: handle 3585 flags 0x02 dlen 26 ATT: Write req (0x12) handle 0x000c value 0x30 0x31 0x30 0x30 0x30 0x31 0x30 0x30 0x35 0x37 0x30 0x31 0x33 0x31 0x30 0x31 0x32 0x45 0xc3 2018-07-13 11:04:08.486020 > HCI Event: Disconn Complete (0x05) plen 4 status 0x00 handle 3585 reason 0x13 Reason: Remote User Terminated Connection 2018-07-13 11:04:08.537266 < HCI Command: LE Set Advertise Enable (0x08|0x000a) plen 1 01 2018-07-13 11:04:08.537916 > HCI Event: Command Complete (0x0e) plen 4 LE Set Advertise Enable (0x08|0x000a) ncmd 2 status 0x00