PANU / BNEP Connection on iOS device

1,088 views
Skip to first unread message

Samuel Richard Magny

unread,
Mar 23, 2016, 4:30:14 AM3/23/16
to btstack-dev
Hi, 
I'm trying to establish a PAN-U connection on a embedded MCU with a TI CC256xx to a iOS device. (The iPhone is the "host" and the MCU connect to it). I've based my implementation on the panu_example found on the github repo.
It's working on my Mac computer and on an Android device, but it's not working on my iPhone (I've activated the internet sharing option on the iPhone).

The main difference in the connection process is that with iOS there is a ATT_Write request with transactionMode to "ATT_TRANSACTION_MODE_CANCEL". Once the callback is done, there is a connection closed :
Connection closed: handle 0x1, XX:XX:XX:XX:XX
BTSTACK_EVENT_NR_CONNECTIONS_CHANGED 0

In the log, there's also a message theses messages:
l2cap received remote supported features, sec_level_0_allowed for psm 15 = 0
gap_request_security_level 2, current level 0
l2cap_stop_rtx for local cid 0x40
L2CAP_EVENT_CHANNEL_CLOSED local_cid 0x41

My feeling are telling me there is maybe something more to do with encryption. 
How can I upgrade the gap security level to 2 with BTStack library?

I'm wondering if someone also had this problem on iOS and if someone know what iOS need more to establish the BNEP Connection?

Thank you!

Matthias Ringwald

unread,
Mar 29, 2016, 9:11:12 AM3/29/16
to btsta...@googlegroups.com, Samuel Richard Magny
Hi Samuel

I never tried PANU/BNEP to an iPhone although it should work. BNEP runs over Classic L2CAP connections, so the ATT_Write request should not be related to your PANU problem.
As for security, BTstack automatically tries to enable encryption for all connections other then SDP. 
The "gap_request_secruity_level 2" indicates this.
No idea why it failed.

Could you create a full packet log, that includes all packets? This should provide more info.

Best
 Matthias


--
You received this message because you are subscribed to the Google Groups "btstack-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to btstack-dev...@googlegroups.com.
To post to this group, send email to btsta...@googlegroups.com.
Visit this group at https://groups.google.com/group/btstack-dev.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages