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.

bluetooth stack cc2564

Other Parts Discussed in Thread: CC2564

i have a module using CC2564 chip and processor of freescale, which are running on andoird 4.3. And I want to ask whether Bluedroid stack can use with CC2564?

  • Hi Hong,

    It should be possible given that the CC2564 is a BT HCI device. You will need to do couple of tweaks in the HCI driver to support the CC2564 though.

    Regards,

    Miguel

  • hi Miguel

    thanks  for your reply.

    can Bluedroid stack be used with cc2564?

    what software package do i need have to control cc2564 device running android?

    thanks!

  • Hi,

    Yes it should be possible.

    See below for bring up Bluedroid on Android, we have a detailed step explained in the below link for WIlink devices, But the same can be used for CC2564 devices as well, But as Miguel mentioned you will need to do couple of tweaks. http://e2e.ti.com/support/low_power_rf/f/538/t/294284.aspx

  • Hi,

    thanks  for your reply.

    Bluez stack can use with cc2564?

    regards.

  • Hi,

    thanks for your reply

    how to port Bluez to android4.3?

    regards!

  • Hi,

    you can follow the instructions mentioned in the post http://e2e.ti.com/support/wireless_connectivity/f/307/p/266760/937992.aspx#937992 

    As android 4.3 comes with Bluedroid, If you want to use on it, i don't think it is a straight forward job. In addition to the above, you need to get the BlueZ library which can be ported on android and then start. I am sure you will find more information on the net.

     

  • Hi,

    thanks for your reply.

    i did follow by the guideline and meet below error:

    E/uim-sysfs( 2786): uim: Inside main
    E/uim-sysfs( 2786): uim:BT/FM/GPS would be unavailable on system

    Can you help me solve that?

    thanks!

  • Hi,

    It looks like your kernel build does not included Shared Transport (ST)

  • Hi,

    thanks for your reply

    I did build ST in kernel but now it error:(stk) :download firmware failed

    Freeing init memory: 208K                                                      
    rfkill: BT RF going to : off                                                   
    android_usb: already disabled                                                  
    mtp_bind_config                                                                
    adb_bind_config                                                                
    adb_open                                                                       
    (stc): st_tty_open                                                             
    (stk) : line discipline installed                                              
    root@evk_6sl:/ # android_work: sent uevent USB_STATE=DISCONNECTED              
    android_work: sent uevent USB_STATE=CONNECTED                                  
    android_work: sent uevent USB_STATE=DISCONNECTED                               
    android_work: sent uevent USB_STATE=CONNECTED                                  
    android_usb gadget: high speed config #1: android                              
    android_work: sent uevent USB_STATE=CONFIGURED                                 
    (stk) : waiting for ver info- timed out                                        
    (stk) :kim: failed to read local ver                                           
    (stk) :download firmware failed                                                
    (stk) :ldisc_install = 0                                                       
    (stc): st_tty_close                                                            
    ERROR: v4l2 capture: Internal error, cam_data not found!                       
    ERROR: v4l2 capture: Internal error, cam_data not found!                       
    (stk) :ldisc_install = 1                                                       
    (stc): st_tty_open                                                             
    (stk) : line discipline installed                                                                                        
    (stk) : waiting for ver info- timed out                                        
    (stk) :kim: failed to read local ver                                           
    (stk) :download firmware failed                                                
    (stk) :ldisc_install = 0                         

    Can you help me solve that?

    thanks!

  • Hi,

    Looks like GPIO is not toggled properly.

    This should be high before there is any communication with the chip.

    Could you please check if the connection with the chip is fine when you face this issue. Also if possible please check if the voltage on GPIO is driven high.

    you can also probe the UART lines to make sure that the UART configuration is correct.

    Also check if you have done the software configuration correctly in the board file with respect to the UART you are using.

  • Hi, 

    thanks for your reply.

    i has modify path of .bts file and config UART correct, but now it error:


    stk) :TIInit_6.6.15.bts
    (stk) :change remote baud rate command in firmware
    (stk) :skipping the wait event of change remote baud
    (stk) :unknown packet
    (stc): add_channel_to_table: id 2
    (stc): st_register(3)
    (stc): add_channel_to_table: id 3
    (stc): st_register(4)
    (stc): add_channel_to_table: id 4
    (stc): remove_channel_from_table: id 2
    (stc): remove_channel_from_table: id 3
    (stc): remove_channel_from_table: id 4
    (stc): all chnl_ids unregistered
    (stk) :ldisc_install = 0
    (stc): st_tty_close
    (stc): 2 not un-registered
    (stc): 3 not un-registered
    (stc): 4 not un-registered

     

    Can you help me solve that?

    thanks!

     

  • Hi,

    As mentioned in my earlier post it still looks like the problem is with the GPIO. 

  • Hi,

    thanks for reply

    i has config GPIO correct but hci_tty not open. now Bluetooth has run good.
    thanks!

  • Hi,

    I have same problem.
    Could you tell me how can you fixed it??


    (stc): add_channel_to_table: id 4
    [ 32.603937] (stc): st_register(2)
    [ 32.605814] (stc): add_channel_to_table: id 2
    [ 32.611535] (stc): st_register(3)
    [ 32.613527] (stc): add_channel_to_table: id 3
    [ 32.618787] (stc): remove_channel_from_table: id 3
    [ 32.622877] Bluetooth: Unable to push skb to HCI core(-6)
    [ 32.628171] (stc): proto stack 4's ->recv failed
    [ 32.632706] (stc): remove_channel_from_table: id 2
    [ 32.649429] (stc): remove_channel_from_table: id 4
    [ 32.649476] (stc): all chnl_ids unregistered
    [ 32.652887] (stk) :ldisc_install = 0
    [ 32.656627] (stc): st_tty_close
    [ 32.659610] (stc): 2 not un-registered
    [ 32.663310] (stc): 3 not un-registered
    [ 32.667036] (stc): 4 not un-registered