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 I use BlueZ with the WL1835MODCOM8A

Other Parts Discussed in Thread: WL1835

I've got a Linux product based on the AM335x EVM with the WL1271L module (BT + WiFi), using the BlueZ stack.  We're considering changing to the WL1835 module, which comes with the Street Stone One Bluetopia stack.  Can this module be used with the BlueZ stack instead?  We are using the SDP and SPP Bluetooth profiles.

  • hciattach doesn't work.  But this method does:

    Use the recommended BTS file...

    http://processors.wiki.ti.com/index.php/WL18xx_Bluetopia_Platform_Manager_Demo_Guide#Device_Manager_.28DEVM.29

    recommends

    https://github.com/TI-ECS/bt-firmware/blob/master/Bluetopia_InitScript_for_TI_WL8.zip

    Get TIInit_11.8.32.bts (from Bluetopia_InitScript_for_TI_WL8.zip), place in /lib/firmware.

    root@am335x-evm:/lib/firmware# ls -l
    -rw-r--r-- 1 root root 2319 Jun 20 05:35 LICENCE
    -rwxr-xr-x 1 root root 38298 Jun 20 05:35 TIInit_10.4.27.bts
    lrwxrwxrwx 1 root root 28 Jun 21 10:05 TIInit_11.8.32.bts -> TIInit_11.8.32.bts.bluetopia
    -rw-r--r-- 1 root root 66774 Jun 21 07:31 TIInit_11.8.32.bts.bluetopia
    -rwxr-xr-x 1 root root 85676 Jun 20 05:35 TIInit_11.8.32.bts.orig
    -rwxr-xr-x 1 root root 60846 Jul 3 2013 TIInit_12.8.32.bts
    -rwxr-xr-x 1 root root 49749 Jun 20 05:35 TIInit_7.2.31.bts
    -rwxr-xr-x 1 root root 11546 Jun 20 05:35 TIInit_7.6.15.bts
    drwxr-xr-x 3 root root 4096 Jun 21 10:03 ti-connectivity
    root@am335x-evm:/lib/firmware#

    Then use "modprobe btwilink" to attach:

    root@am335x-evm:~# modprobe btwilink
    [ 38.470520] Bluetooth: Core ver 2.16
    [ 38.474426] NET: Registered protocol family 31
    [ 38.479064] Bluetooth: HCI device and connection manager initialized
    [ 38.485717] Bluetooth: HCI socket layer initialized
    [ 38.490814] Bluetooth: L2CAP socket layer initialized
    [ 38.496093] Bluetooth: SCO socket layer initialized
    [ 38.506378] Bluetooth: Bluetooth Driver for TI WiLink - Version 1.0
    [ 38.515808] (stc): st_register(4)
    [ 38.519165] (stc): chnl_id list empty :4
    [ 38.523529] (stk) : st_kim_start
    [ 38.526885] plat_kim_chip_enable
    root@am335x-evm:~# [ 38.646606] (stk) :ldisc_install = 1uim:poll broke due to event 10(PRI:2/ERR:8)

    uim:read 1 from install

    uim:@ st_uart_config
    uim: signal received, opening /dev/ttyO1
    uim:@ set_baud_rate
    uim:set_baud_rate() done
    uim:Setting speed to 3000000
    uim:@ read_command_complete
    uim: Command complete started
    uim:@ read_hci_event
    uim: read_hci_event
    uim:Command comp
    [ 38.703094] (stc): st_tty_open lete done
    uim:S
    [ 38.707702] (stk) : line discipline installed peed changing to 3000000, 1
    uim
    [ 38.715423] (stk) :TIInit_11.8.32.bts:@ set_custom_baud_rate
    uim:Installed N_TI_WL Line displine
    uim:begin polling...

    [ 38.745605] (stk) :change remote baud rate command in firmware
    [ 38.751800] (stk) :invalid action after change remote baud command
    [ 38.802917] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [ 38.808654] Bluetooth: BNEP filters: protocol multicast
    [ 38.972198] (stk) :sleep command in scr

    [ 39.476654] (stk) :sleep command in scrroot@am335x-evm:~#
    root@am335x-evm:~#
    [ 40.430053] (stc): add_channel_to_table: id 4
    [ 40.434844] (stc): st_register(2)
    [ 40.438232] (stc): add_channel_to_table: id 2
    [ 40.442993] (stc): st_register(3)
    [ 40.446350] (stc): add_channel_to_table: id 3
    [ 40.506408] Bluetooth: RFCOMM TTY layer initialized
    [ 40.511505] Bluetooth: RFCOMM socket layer initialized
    [ 40.516967] Bluetooth: RFCOMM ver 1.11

    root@am335x-evm:~#
    root@am335x-evm:~# hciconfig up
    hci0: Type: BR/EDR Bus: UART
    BD Address: 84:DD:20:98:95:8C ACL MTU: 1021:6 SCO MTU: 180:4
    UP RUNNING PSCAN
    RX bytes:503 acl:0 sco:0 events:24 errors:0
    TX bytes:855 acl:0 sco:0 commands:24 errors:0

    root@am335x-evm:~#
    root@am335x-evm:~#
    root@am335x-evm:~# hcitool scan
    Scanning ...

    00:05:4F:D0:03:D4 n/a
    34:B1:F7:6C:6A:1B XR5000
    C8:A0:30:77:E0:5D XR5000
    00:11:67:55:91:5D TT653
    00:0A:3A:84:9C:F1 0 W810
    EC:FE:7E:00:01:FE BlueRadios0001FE
    00:A0:96:3B:8D:1B XRP20006
    root@am335x-evm:~#