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!