Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notifications disconnected after 60 seconds #61

Open
kevinchapron opened this issue Nov 6, 2017 · 0 comments
Open

Notifications disconnected after 60 seconds #61

kevinchapron opened this issue Nov 6, 2017 · 0 comments

Comments

@kevinchapron
Copy link

Hi,

I did a peripheral program with a NRF52 working perfectly.
I did a central program receiving data from the NRF with "github.com/currantlabs/ble" as library
When i suscribe to a characteristic, the program seems to stop itself (disconnecting) after 60 seconds every time.

First i thought it was my code, but i tested with an example of "github.com/getsenic/gatt-python", and it works perfectly indefinitely
So, my question is : how is it possible to receive more than 60 seconds of data ?

I join you an of the program running (on the central program, being run on a Raspberry Pi 3).

kevin@kevin-rpi3:~ $ hcidump -t -x
HCI sniffer - Bluetooth packet analyzer ver 5.23
device: hci0 snap_len: 1500 filter: 0xffffffff
2017-11-06 18:46:51.133945 > HCI Event: Command Complete (0x0e) plen 12
Read Local Supported Features (0x04|0x0003) ncmd 1
status 0x00
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
2017-11-06 18:46:51.134741 > HCI Event: Command Complete (0x0e) plen 12
Read Local Version Information (0x04|0x0001) ncmd 1
status 0x00
HCI Version: 4.1 (0x7) HCI Revision: 0x145
LMP Version: 4.1 (0x7) LMP Subversion: 0x2209
Manufacturer: Broadcom Corporation (15)
2017-11-06 18:46:51.135180 > HCI Event: Command Complete (0x0e) plen 10
Read BD ADDR (0x04|0x0009) ncmd 1
status 0x00 bdaddr B8:27:EB:D5:E8:94
2017-11-06 18:46:51.135688 > HCI Event: Command Complete (0x0e) plen 11
Read Buffer Size (0x04|0x0005) ncmd 1
status 0x00
ACL MTU 1021:8 SCO MTU 64:1
2017-11-06 18:46:51.136105 > HCI Event: Command Complete (0x0e) plen 7
Read Class of Device (0x03|0x0023) ncmd 1
status 0x00 class 0x000000
2017-11-06 18:46:51.139176 > HCI Event: Command Complete (0x0e) plen 252
Read Local Name (0x03|0x0014) ncmd 1
status 0x00 name 'BlueZ 5.47'
2017-11-06 18:46:51.139562 > HCI Event: Command Complete (0x0e) plen 6
Read Voice Setting (0x03|0x0025) ncmd 1
status 0x00 voice setting 0x0060
2017-11-06 18:46:51.139929 > HCI Event: Command Complete (0x0e) plen 5
Read Number of Supported IAC (0x03|0x0038) ncmd 1
00 04
2017-11-06 18:46:51.140338 > HCI Event: Command Complete (0x0e) plen 8
Read Current IAC LAP (0x03|0x0039) ncmd 1
IAC 0x9e8b33 (General Inquiry Access Code)
2017-11-06 18:46:51.140718 > HCI Event: Command Complete (0x0e) plen 4
Set Event Filter (0x03|0x0005) ncmd 1
status 0x00
2017-11-06 18:46:51.141119 > HCI Event: Command Complete (0x0e) plen 4
Write Connection Accept Timeout (0x03|0x0016) ncmd 1
status 0x00
2017-11-06 18:46:51.141514 > HCI Event: Command Complete (0x0e) plen 7
LE Read Buffer Size (0x08|0x0002) ncmd 1
status 0x00 pktlen 0x00fb maxpkt 0x08
2017-11-06 18:46:51.141968 > HCI Event: Command Complete (0x0e) plen 12
LE Read Local Supported Features (0x08|0x0003) ncmd 1
status 0x00 features 0x1f00000000000000 (Link Layer supports LE Encryption)
2017-11-06 18:46:51.142442 > HCI Event: Command Complete (0x0e) plen 12
LE Read Supported States (0x08|0x001c) ncmd 1
00 FF FF FF FF FF 03 00 00
2017-11-06 18:46:51.143505 > HCI Event: Command Complete (0x0e) plen 68
Read Local Supported Commands (0x04|0x0002) ncmd 1
status 0x00
Commands: ffffff03ccffefffffffec1ff20fe8fe3ff78fff1c00040061f7ffff7ff8ffff
ff3f
2017-11-06 18:46:51.248855 > HCI Event: Command Complete (0x0e) plen 4
Write Simple Pairing Mode (0x03|0x0056) ncmd 1
status 0x00
2017-11-06 18:46:51.249297 > HCI Event: Command Complete (0x0e) plen 4
Write Inquiry Mode (0x03|0x0045) ncmd 1
status 0x00
2017-11-06 18:46:51.249637 > HCI Event: Command Complete (0x0e) plen 5
Read Inquiry Response Transmit Power Level (0x03|0x0058) ncmd 1
status 0x00 level 0
2017-11-06 18:46:51.250110 > HCI Event: Command Complete (0x0e) plen 14
Read Local Extended Features (0x04|0x0004) ncmd 1
status 0x00 page 1 max 2
Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
2017-11-06 18:46:51.250573 > HCI Event: Command Complete (0x0e) plen 4
Set Event Mask (0x03|0x0001) ncmd 1
status 0x00
2017-11-06 18:46:51.251097 > HCI Event: Command Complete (0x0e) plen 8
Read Stored Link Key (0x03|0x000d) ncmd 1
status 0x00 max 1 num 0
2017-11-06 18:46:51.251468 > HCI Event: Command Complete (0x0e) plen 4
Write Default Link Policy Settings (0x02|0x000f) ncmd 1
status 0x00
2017-11-06 18:46:51.251907 > HCI Event: Command Complete (0x0e) plen 8
Read Page Scan Activity (0x03|0x001b) ncmd 1
status 0x00 interval 2048 window 18
2017-11-06 18:46:51.252280 > HCI Event: Command Complete (0x0e) plen 5
Read Page Scan Type (0x03|0x0046) ncmd 1
00 00
2017-11-06 18:46:51.252738 > HCI Event: Command Complete (0x0e) plen 4
LE Set Event Mask (0x08|0x0001) ncmd 1
status 0x00
2017-11-06 18:46:51.253090 > HCI Event: Command Complete (0x0e) plen 5
LE Read Advertising Channel Tx Power (0x08|0x0007) ncmd 1
status 0x00 level 0xc (dBm)
2017-11-06 18:46:51.253432 > HCI Event: Command Complete (0x0e) plen 5
LE Read White List Size (0x08|0x000f) ncmd 1
00 80
2017-11-06 18:46:51.253896 > HCI Event: Command Complete (0x0e) plen 4
LE Clear White List (0x08|0x0010) ncmd 1
status 0x00
2017-11-06 18:46:51.254327 > HCI Event: Command Complete (0x0e) plen 4
Write LE Host Supported (0x03|0x006d) ncmd 1
00
2017-11-06 18:46:51.254852 > HCI Event: Command Complete (0x0e) plen 14
Read Local Extended Features (0x04|0x0004) ncmd 1
status 0x00 page 2 max 2
Features: 0x13 0x03 0x00 0x00 0x00 0x00 0x00 0x00
2017-11-06 18:46:51.255346 > HCI Event: Command Complete (0x0e) plen 6
Delete Stored Link Key (0x03|0x0012) ncmd 1
status 0x00 deleted 0
2017-11-06 18:46:51.255807 > HCI Event: Command Complete (0x0e) plen 4
Set Event Mask Page 2 (0x03|0x0063) ncmd 1
status 0x00
2017-11-06 18:46:51.256291 > HCI Event: Command Complete (0x0e) plen 12
Unknown (0x04|0x000b) ncmd 1
00 06 00 01 02 03 04 05 00
2017-11-06 18:46:51.256820 > HCI Event: Command Complete (0x0e) plen 15
Unknown (0x05|0x000c) ncmd 1
00 01 02 01 C0 C6 2D 00 C0 C6 2D 00
2017-11-06 18:46:51.257198 > HCI Event: Command Complete (0x0e) plen 4
Unknown (0x03|0x007a) ncmd 1
00
2017-11-06 18:46:51.258035 > HCI Event: Command Complete (0x0e) plen 4
LE Set Advertising Data (0x08|0x0008) ncmd 1
status 0x00
2017-11-06 18:46:51.258814 > HCI Event: Command Complete (0x0e) plen 4
LE Set Scan Response Data (0x08|0x0009) ncmd 1
status 0x00
2017-11-06 18:46:51.261924 > HCI Event: Command Complete (0x0e) plen 4
Write Local Name (0x03|0x0013) ncmd 1
status 0x00
2017-11-06 18:46:51.265021 > HCI Event: Command Complete (0x0e) plen 4
Write Extended Inquiry Response (0x03|0x0052) ncmd 1
status 0x00
2017-11-06 18:46:51.267827 > HCI Event: Command Complete (0x0e) plen 4
Reset (0x03|0x0003) ncmd 1
status 0x00
2017-11-06 18:46:51.271276 > HCI Event: Command Complete (0x0e) plen 4
Reset (0x03|0x0003) ncmd 1
status 0x00
2017-11-06 18:46:51.272224 > HCI Event: Command Complete (0x0e) plen 4
Set Event Mask (0x03|0x0001) ncmd 1
status 0x00
2017-11-06 18:46:51.273086 > HCI Event: Command Complete (0x0e) plen 4
LE Set Event Mask (0x08|0x0001) ncmd 1
status 0x00
2017-11-06 18:46:51.377079 > HCI Event: Command Complete (0x0e) plen 4
Write Simple Pairing Mode (0x03|0x0056) ncmd 1
status 0x00
2017-11-06 18:46:51.377736 > HCI Event: Command Complete (0x0e) plen 4
Write LE Host Supported (0x03|0x006d) ncmd 1
00
2017-11-06 18:46:51.378388 > HCI Event: Command Complete (0x0e) plen 4
Write Inquiry Mode (0x03|0x0045) ncmd 1
status 0x00
2017-11-06 18:46:51.378895 > HCI Event: Command Complete (0x0e) plen 4
Write Page Scan Type (0x03|0x0047) ncmd 1
00
2017-11-06 18:46:51.379481 > HCI Event: Command Complete (0x0e) plen 4
Write Inquiry Scan Type (0x03|0x0043) ncmd 1
status 0x00
2017-11-06 18:46:51.380021 > HCI Event: Command Complete (0x0e) plen 4
Write Class of Device (0x03|0x0024) ncmd 1
status 0x00
2017-11-06 18:46:51.380644 > HCI Event: Command Complete (0x0e) plen 4
Write Page Timeout (0x03|0x0018) ncmd 1
status 0x00
2017-11-06 18:46:51.381243 > HCI Event: Command Complete (0x0e) plen 4
Write Default Link Policy Settings (0x02|0x000f) ncmd 1
status 0x00
2017-11-06 18:46:51.381946 > HCI Event: Command Complete (0x0e) plen 4
Host Buffer Size (0x03|0x0033) ncmd 1
status 0x00
2017-11-06 18:46:51.382575 > HCI Event: Command Complete (0x0e) plen 4
LE Set Scan Parameters (0x08|0x000b) ncmd 1
status 0x00
2017-11-06 18:46:51.383478 > HCI Event: Command Complete (0x0e) plen 4
LE Set Scan Enable (0x08|0x000c) ncmd 1
status 0x00
2017-11-06 18:46:52.470542 > HCI Event: Command Complete (0x0e) plen 4
LE Set Scan Enable (0x08|0x000c) ncmd 1
status 0x00
2017-11-06 18:46:52.471602 > HCI Event: Command Status (0x0f) plen 4
LE Create Connection (0x08|0x000d) status 0x00 ncmd 1
2017-11-06 18:46:52.628253 > HCI Event: Command Complete (0x0e) plen 4
LE Set Advertise Enable (0x08|0x000a) ncmd 1
status 0x00
2017-11-06 18:47:52.669468 > HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 64 reason 0x13
Reason: Remote User Terminated Connection
2017-11-06 18:47:52.670744 > HCI Event: Command Complete (0x0e) plen 4
LE Set Advertise Enable (0x08|0x000a) ncmd 1
status 0x0c
Error: Command Disallowed
2017-11-06 18:48:54.164165 > HCI Event: Command Complete (0x0e) plen 4
Reset (0x03|0x0003) ncmd 1
status 0x00
^C
kevin@kevin-rpi3:~ $

I'm hoping on having news about this thread soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant