Other Parts Discussed in Thread: CC2540, CC2640, TIDA-00374, CC2650
I'm attempting to simply connect to the Simple BLE peripheral from the Gatttool provided by Bluez with no success. The device is in fact transmitting connectable packets, but won't accept the connection from the central. It's not a compile issue, and I have changed the project to compile with the proper board file for the 4x4 instead of the 7x7. I've also attempted to connect to the peripheral with a node.js script with no success.
So far, I've attempted to modify the project by turning the GAP bonding & Mitm protection for the GAP bond manager off as well as mess with the advertisement intervals with no success. As a precaution, i've also removed the LCD write statements since my 4x4 has no LCD's. I'm currently using the SmartRF06 board with the XDS bypass in place to flash directly to the EM. (It's our build, but based on the reference design.)
I'm also using the IAR compiler, with IAR workbench. (Not sure if this helps)
The gatttool command I'm using is:
sudo gatttool -b MACADDRESS -I
then the connect command once in interactive mode.
I guess any pointers on how I could debug the connection request --- if it's coming across --- or some build option that maybe I'm not thinking of because it's the 4x4 and not the 7x7 which the demo was based upon.
HCI Dump from central:
debian@beaglebone:~$ sudo hcidump -t -x
HCI sniffer - Bluetooth packet analyzer ver 5.35
device: hci0 snap_len: 1500 filter: 0xffffffff
2015-11-03 15:45:43.943201 > HCI Event: LE Meta Event (0x3e) plen 19
LE Advertising Report
ADV_IND - Connectable undirected advertising (0)
bdaddr B0:B4:48:E4:17:80 (Public)
Flags: 0x06
Shortened service classes: 0xfff0
RSSI: -68
2015-11-03 15:45:43.946206 > HCI Event: LE Meta Event (0x3e) plen 42
LE Advertising Report
SCAN_RSP - Scan Response (4)
bdaddr B0:B4:48:E4:17:80 (Public)
Complete local name: 'SimpleBLEPeripheral'
Unknown type 0x12 with 4 bytes data
TX power level: 0
RSSI: -67
2015-11-03 15:45:44.049196 > HCI Event: LE Meta Event (0x3e) plen 19
LE Advertising Report
ADV_IND - Connectable undirected advertising (0)
bdaddr B0:B4:48:E4:17:80 (Public)
Flags: 0x06
Shortened service classes: 0xfff0
RSSI: -65
2015-11-03 15:45:44.052212 > HCI Event: LE Meta Event (0x3e) plen 42
LE Advertising Report
SCAN_RSP - Scan Response (4)
bdaddr B0:B4:48:E4:17:80 (Public)
Complete local name: 'SimpleBLEPeripheral'
Unknown type 0x12 with 4 bytes data
TX power level: 0
RSSI: -59
2015-11-03 15:45:44.159193 > HCI Event: LE Meta Event (0x3e) plen 19
LE Advertising Report
ADV_IND - Connectable undirected advertising (0)
bdaddr B0:B4:48:E4:17:80 (Public)
Flags: 0x06
Shortened service classes: 0xfff0
RSSI: -72
2015-11-03 15:45:44.162242 > HCI Event: LE Meta Event (0x3e) plen 42
LE Advertising Report
SCAN_RSP - Scan Response (4)
bdaddr B0:B4:48:E4:17:80 (Public)
Complete local name: 'SimpleBLEPeripheral'
Unknown type 0x12 with 4 bytes data
TX power level: 0
RSSI: -72
2015-11-03 15:45:44.267201 > HCI Event: LE Meta Event (0x3e) plen 19
LE Advertising Report
ADV_IND - Connectable undirected advertising (0)
bdaddr B0:B4:48:E4:17:80 (Public)
Flags: 0x06
Shortened service classes: 0xfff0
RSSI: -68
2015-11-03 15:45:44.374192 > HCI Event: LE Meta Event (0x3e) plen 19
LE Advertising Report
ADV_IND - Connectable undirected advertising (0)
bdaddr B0:B4:48:E4:17:80 (Public)
Flags: 0x06
Shortened service classes: 0xfff0
RSSI: -72
2015-11-03 15:45:44.472218 > HCI Event: LE Meta Event (0x3e) plen 19
LE Advertising Report
ADV_IND - Connectable undirected advertising (0)
bdaddr B0:B4:48:E4:17:80 (Public)
Flags: 0x06
Shortened service classes: 0xfff0
RSSI: -65
2015-11-03 15:45:44.475213 > HCI Event: LE Meta Event (0x3e) plen 42
LE Advertising Report
SCAN_RSP - Scan Response (4)
bdaddr B0:B4:48:E4:17:80 (Public)
Complete local name: 'SimpleBLEPeripheral'
Unknown type 0x12 with 4 bytes data
TX power level: 0
RSSI: -59
Connection attempt from same central:
debian@beaglebone:~$ sudo gatttool -b B0:B4:48:E4:17:80 -I [ ][B0:B4:48:E4:17:80][LE]> connect Connecting... connect error: Connection refused (111) [ ][B0:B4:48:E4:17:80][LE]>