Part Number: CC2564
SPPDemo on STM32F4 eval board.
Having failed to get SPPDemo to connect to Windows, I've tried it with Ubuntu (14.04) and hcidump, with SPPDemo as client, and :
#
# RFCOMM configuration file.
#
rfcomm0 {
# Automatically bind the device at startup
bind no;
# Bluetooth address of the device
device 00:17:E9:E5:79:AE;
# RFCOMM channel for the connection
channel 3;
# Description of the connection
comment "SPPDemo Serial Port connection";
}
CC2464B SPPDemo dialogue:
Client>inquiry
Client>
Inquiry Entry: 0x001583E59271.
Client>
Inquiry Entry: 0x001A7DDA7114.
Client>open 2
Result: 1,0x001583E59271.
Result: 2,0x001A7DDA7114.
open 2 3
SPP_Open_Remote_Port success.
Client>
SPP Open Confirmation, ID: 0x0001, Status 0x0002.
Client>
Ubuntu hcidump output:
HCI sniffer - Bluetooth packet analyzer ver 2.5
device: hci0 snap_len: 1500 filter: 0xffffffffffffffff
> HCI Event: Connect Request (0x04) plen 10
bdaddr 00:17:E9:E5:79:AE class 0x001f00 type ACL
> HCI Event: Command Status (0x0f) plen 4
Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
> HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 71 bdaddr 00:17:E9:E5:79:AE type ACL encrypt 0x00
> HCI Event: Command Status (0x0f) plen 4
Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 0
> HCI Event: Command Status (0x0f) plen 4
Unknown (0x00|0x0000) status 0x00 ncmd 1
> HCI Event: Read Remote Supported Features (0x0b) plen 11
status 0x00 handle 71
Features: 0xff 0xfe 0x2d 0xfe 0xdb 0xff 0x7b 0x87
> HCI Event: Command Status (0x0f) plen 4
Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1
> HCI Event: Read Remote Extended Features (0x23) plen 13
status 0x00 handle 71 page 1 max 1
Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
> HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 71 reason 0x13
Reason: Remote User Terminated Connection
The HCI Logger output (levels 3 & 4) for SPPDemo are in these screenshots: BTLogger_1.pdf and BTLogger_2.pdf
It seems as though the client is terminating the connection, possibly on account of the query from the PC? I get the same client response in Win10 x64. I've tried with/without __SUPPORT_LOW_ENERGY__, and get the same response if I (successfully) pair (from the PC host) prior to the open. I'm using 6763.CC256XB.h as service pack.
Hugely appreciate any pointers as to why there is an initial connection which is dropped after a few seconds. Stuck for over a week on this and got to the point of considering designing out the device....
Brian