This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

can't establish Bluetooth connection via pan

i'm trying to connect my android phone(one plus one) with the Bluetooth CC256x.

the initialization and  the pairing is working fine.

then i'm trying to connect with the function - 'PAN_Open_Remote_Server'  - i'm getting a valid return value from this function with PanID.

but in the PAN_Event_Callback function, the event  'etPAN_Open_Confirmation' occurs(as expected)  and the

"PAN_Event_Data->Event_Data.PAN_Open_Confirmation_Data->OpenStatus"  is equl  to 0x0003 that mean "PAN_OPEN_STATUS_UNKNOWN_ERROR" and the connection is not eastablished.

I've enabled the HCI snoop log in the developer options of my phone, and i opened the log file that created of the data transfer with Wireshark, and it seems like the connection is succeeded but immediately after that, a disconnection request is sent(and succeeded as well).

do you have any idea about what might be wrong?

Thanks,

Simon.

  • Hi Simon,

    Can you please share the snoop logs? Also, which SDK release are you using?

    Regards,
    Gigi Joseph.
  • Hi Joseph,

    Here is a snoop log file, there is a successful pairing with pin code and connection attempt.

    I'm using the SDK version 4.0.2.1.

    Thanks,

    Simon.

    btsnoop���Wl�I���Wl�L�		��Wl�O3����Wl�R���Wl�����Wl��� ��Wl�́ ��Wl��h ��Wl��1 ��Wl�R) ��Wl�m� ��Wl�z ��WlDžQ ��WlǑ��WlǛa		��WlǨ�3����Wlǫ���Wl�%="7b��V���Wl�^�:3����Wlنw:��Wlَ���Wlٖ\��Wlٟ���Wl٦2��WmJ���WmbQ ��Wmm ��Wmx- ��Wm�� ��Wm?o� ��Wm?�� ��Wm?�� ��Wm?�� ��Wm?��
    7b��V���Wm?����Wm�6h�7b��
    
    ��Wn%v�
    7b����Wn%��	7b����Wn%�L	��Wn)q�7b����Wn*9@7b����Wn*C��Wn*D� 
    
    ��Wn*H���Wn*P�
    		��Wn*T�
    ��Wn*Xw7@		��Wn*\t7��Wn*a�
    ���Wn*f���Wn*j'��Wn*w1��Wn*����-���{���Wn*����Wn*���Wn*�m��Wn+��#
    ��Wn+�L
    7b����Wn+����Wn+�� ���Wn+͘��Wn+ۯ���Wn+�
    ���Wn+� 
    
    ��Wn+�
    		��Wn,E
    ��Wn-9�7b��PANU1��Wn-?���Wn/.� 		��Wns��7b����Wn��E
    7b��1111
    
    ��Wn��k
    
    7b����Wn��{7b��°�hY���$�5����Wn�z�
    7b��V���Wn�}Z��Wn�{��7b����Wn��+��Wn��� D��Wn��7
    7b���V���Wn����Wn�(87b����Wn�7v���Wn�B���Wn�J� 
    
    ��Wn�SZ
    		��Wn�^
    ��Wn�kj
    		��Wn�s�
    ��Wn�{}
    		��WnĆ
    ��WnĔ&7@		��Wně+7��Wn�	��Wn����Wn�0 ���Wn�"< 
    
    ��Wn�,���Wn�Y� ��Wn�eY D��Wn�v���Wn�� DD��Wn�� D��Wn��� D���Wn��� 
    D��Wn�\��Wn����WnɊ� 
    D��Wnɛ� D5�5
    ����WnɦR��Wn� 
    D5��Wn�� 	DD��Wn�*��Wn̠ 	DD��Wn̰� 
    E��Wn̾���Wn�� 
    EE��Wn�A E��Wn�} E���Wn�� 
    E��Wn�"���Wn�,K��Wn�=" 
    E��Wn�M� E5�5
    ����Wn�T���WnϽ� 
    E5��Wn��� EE��Wn��>��Wn�=� EE��Wn�hH
    
    ��Wp��
    7b����Wp�(�	7b����Wp�4	��Wp��7b����Wp�jN7b����Wp�v���Wp��t��Wp��� 
    
    ��Wp������Wp���
    ���Wp��I F��Wp��I��Wp��* FF��Wp�����Wp��h��Wp�
    ���Wp�
    		��Wp�
    ��Wp��
    		��Wp��
    ��Wp�!t7@		��Wp�%A7��Wp�*���Wp�/���Wp�' ���Wp�,���-���{���Wp�=���Wp�EG 
    
    ��Wp�K8��Wp�Q���Wp�k���Wq/	#
    ��WqD�
    7b����WqTf��Wqb���Wqp��7b��PANU1��Wq� ��Wq�K FF��Wq�C��Wq�� F���Wq�:
    ��Wq�j�		��Wq�
    ��WqL0��WqX��WqK 	FF��Wqg� 
    F��Wqv 	FF��Wq
    ���Wq�v

  • Hi Simon,

    Is it 100% reproducible? Do you see this issue with incoming connection (initiated by one plus one towards CC256x)?

    Regards,
    Gigi Joseph.
  • Hi Joseph,

    Yes, I've tried it many times with all the possible options...

    Thanks,

    Simon.

  • Hi Joseph,

     

    I'm still stuck with this problem, there is any suggestion?

    Here is attachment of 2 new log files:

    1. Trying to initiate the connection from CC256x to different phone (LG - G4) – the start is from around packet 1091.

    btsnoop_hci_LG_G4.log

    2. Trying to initiate the connection from my phone towards the CC256x – only the connection attempt.

    btsnoop����([�
    7b������(b,���(]7b�����(�7b��
    
    ���(�) 7b�����(�����(�����( � 
    
    ���( l����( 
    <���( �
    		���( 
    ���( �
    		���( %�
    ���( 1D
    ����( 7���( ;����( I���( O����( U��-���{����( [B���( ak���( g����( nB ����( r|#
    ���( v� 
    
    ���( {
    7b�����( �����( �T����( �����( ������( �*�7b��PANI���( �S���( �� ���( ��
    		���( �
    ���( � E���( ����( � EE���( � EE���( �� E����( �1 EE���(!	c���(!&���(!u 
    E���(A?�

     

    The first thing that common to all the logs is that the CC256x sending a disconnection request towards the phone in the end, is it normal or it not supposed to happen?

    The second thing is there is always an L2CAP "Rcvd Command Reject" in the end because of "invalid CID in request", you have any idea why it happens?

     

    Maybe you have some kind of working PAN example?

     

    Best regards,

    Simon.

  • Simon,

    I apologize for the delay. We are looking into this issue and will have an answer by the end of this week.

    Thanks,
    Samuel
  • Simon,

    Still looking into the issue and will get back with you next week.

    Thanks,
    Samuel
  • Simon,

    The PAN profile is only supported in the AM335x platform (www.ti.com/.../ti-bt-stack-linux-addon). There is a mistake in the STM32 release which included an invalid lib. We will update the release accordingly. I apologize for the confusion.

    Regards,
    ~Miguel