I was wondering if anyone else has had trouble with a ble connection only lasting 10 seconds. I am attempting to connect a mac (running ubuntu) as a central and an iPhone app running as a peripheral. I have verified that the app is connectable with lightblue. I am using the hcitool lescan to get the MAC address and then using gatttool-b -I -t random which gives me the [ ][MAC ADDRESS]> prompt, and then I type connect, which gives me [CON][MAC ADDRESS]> for exactly 10 seconds before reverting to [ ][MAC ADDRESS]>. I did run hcidump and here is the output:
HCI sniffer - Bluetooth packet analyzer ver 2.2 device: hci0 snap_len: 1028 filter: 0xffffffffffffffff
HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7 type 0x01 (active) interval 10.000ms window 10.000ms own address: 0x00 (Public) policy: All
HCI Event: Command Complete (0x0e) plen 4 LE Set Scan Parameters (0x08|0x000b) ncmd 1 status 0x00
HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 value 0x01 (scanning enabled) filter duplicates 0x01 (enabled)
HCI Event: Command Complete (0x0e) plen 4 LE Set Scan Enable (0x08|0x000c) ncmd 1 status 0x00
HCI Event: LE Meta Event (0x3e) plen 33 LE Advertising Report ADV_IND - Connectable undirected advertising (0) bdaddr 78:96:3C:DB:D9:9D (Random) Flags: 0x1a Unknown type 0x07 with 16 bytes data RSSI: -37
HCI Event: LE Meta Event (0x3e) plen 12 LE Advertising Report SCAN_RSP - Scan Response (4) bdaddr 78:96:3C:DB:D9:9D (Random) RSSI: -37
HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 value 0x00 (scanning disabled) filter duplicates 0x01 (enabled)
HCI Event: Command Complete (0x0e) plen 4 LE Set Scan Enable (0x08|0x000c) ncmd 1 status 0x00
HCI Command: LE Create Connection (0x08|0x000d) plen 25 bdaddr 78:96:3C:DB:D9:9D type 1
HCI Event: Command Status (0x0f) plen 4 LE Create Connection (0x08|0x000d) status 0x00 ncmd 1
HCI Event: LE Meta Event (0x3e) plen 19 LE Connection Complete status 0x00 handle 64, role master bdaddr 78:96:3C:DB:D9:9D (Random)
ACL data: handle 64 flags 0x02 dlen 11 ATT: Read By Group req (0x10) start 0x0001, end 0xffff type-uuid 0x2800
HCI Command: Read Remote Version Information (0x01|0x001d) plen 2 handle 64
HCI Event: Read Remote Ver Info Complete (0x0c) plen 8 status 0x00 handle 64 LMP Version: 4.0 (0x6) LMP Subversion: 0x2203 Manufacturer: Broadcom Corporation (15)
HCI Event: Command Status (0x0f) plen 4 Read Remote Version Information (0x01|0x001d) status 0x00 ncmd 1
HCI Event: Disconn Complete (0x05) plen 4 status 0x00 handle 64 reason 0x13 Reason: Remote User Terminated Connection
Any suggestions to help me break out of this rut?
Thanks in advance.