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.

UART2 communication port No to communicate using hci_uart and bluetopia stack for tiwi-ble

Hi ,

I am trying to test the coonectivity of the bluetooth in tiwi-ble using bluetopia in Nitrogen6x board.

We want to test the connectivity of tiwi-ble using hci-uart communication.

The command line option is given below.

I am trying run ./LinuxHCI 1 <com port no> <baud rate>

here '1' is for UART, '0' is for USB and '2' is for BCSP.

I wanted to know what is the communication  port no(ttymxc2) that needs to passed above . The baud rate used is 3mbps. 

Regards,

Ashwath

 

  • Hi,

    I think it is UART3. But to make sure please check your board file.

    Have you checked the Readme file from Bluetopia stacks. As far as I know the Bluetopia stack provided by TI is ment for AM335x platforms.

    If you want a bluetopia stack for the different platform you need to contact StoneStreet One at sales@stonestreetone.com.

      

  • Hi Sundeep,

    Yes, it is using UART3.

    I am getting following error message when I to try to communicate with the chip using hci_uart. I need to pass appropriate command line arguments.

    root@freescale /home$ ./LinuxHCI 1 3 3000000
    Stack Initialization on Port 3 3000000 (UART) Failed: -14.
    Unable to open the stack.
    I am no sure  why I am getting this error message. May the third parameter '3' is causing the issue. This is where I am stuck. I am sure that baud rate is 3mbps. 

    How to get exact communication port number for UART3.

    Regards,

    Ashwath

  • Hi,

    I have got the update for the issue.

    The error code 14 indicates that  BTPS_ERROR_HCI_DRIVER_ERROR as given in bluetopia. It says this error comes due to uart- communication. In our case it is UART-3. The error returned is from  bsc_initialize function in LinuxHCI.c

    How can resolve this error.

    Can any body give some pointers to solve the issue.

    Best Regards,

    Ashwath

  • Hi,

    As mentioned earlier see the Readme file from Bluetopia stacks. As far as I know the Bluetopia stack provided by TI is ment for AM335x platforms.

    If you want a bluetopia stack for the different platform you need to contact StoneStreet One at sales@stonestreetone.com. as the library might not be compatible. 

     

  • Hi,

    I am testing file transfer from Bluetooth.

    BT is pairing with my handset ok.but when file transfer it's gives me connection error on handset.

    and also i was run LinuxFTPM_CLT application for file transfer.

    FTPM>Connect 103B5910218A 1 0
    Remote Device Properties Changed.
    BD_ADDR:       103B5910218A
    Device Flags:  0x800005CD
    Connect State: TRUE
    FTPM>
    etFTPMConnectConfirmation, FTPConnectionID: 0x0001, Status 0x0002
    BD_ADDR: 103B5910218A

    FTPM>dir
    You must open an FTP Client before issuing this command.
    Function Error.


    How to open FTP Client ? Any idea ?

    Thanks
    Tejas

  • Hi Tejas,

    etFTPMConnectConfirmation, FTPConnectionID: 0x0001, Status 0x0002

    Status = 0x0002 => "Connection Refused"

    The FTP Server (remote) is refusing the connection.

    Regards,
    Gigi Joseph.
  • Hi Gipi,
    Run simple ./LinuxFTP 1 1 3 115200
    Client>Open 1 1
    FTP_Open_Remote_File_Server() was successful.
    Client>
    etFTP_Client_Connect_Confirmation, FTPID: 0x0012, Status 0x0002
    BD_ADDR: 103B5910218A

    Status goes to 0x0002 "Connection Refused"

    How to solve this issue ? Any missing from my side?

    BR
    Tejas
  • Hi Tejas,

    Like I said, the remote device is refusing the connection. Please check the remote device and confirm (1) if it has FTP Server running and (2) a pending authentication/service access request which was not accepted.

    Regards,
    Gigi Joseph.