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.

WL1835MODCOM8B: WL1835MODCOM8B using with TMDXEvm3358 board

Part Number: WL1835MODCOM8B
Other Parts Discussed in Thread: TMDXEVM3358,

Hi,

I am using TMDXEvm3358 board and WL1835MODCOM8B,  I am using the default SDK MMC card supplied with the EVM. I can see that bluez is already in it (when Is it so?), if I runs the same script(bt_en.sh), will I be able to bring up bluetooth with hcitool commands.

here is the script from the  manual, 

https://www.ti.com/lit/ug/swru581/swru581.pdf?ts=1619076924423&ref_url=https%253A%252F%252Fe2e.ti.com%252F

echo 117 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio117/direction
echo 1 > /sys/class/gpio/gpio117/value
echo 0 > /sys/class/gpio/gpio117/value
echo 1 > /sys/class/gpio/gpio117/value
echo "Done enabling BT"

gpio="nshutdown_gpio=117"
tty="tty=/dev/ttyS1"
flow="flow_cntrl=1"
baud_rate="baud_rate=3000000"
mkdir /home/root/tibt
echo $gpio > /home/root/tibt/config
echo $tty >> /home/root/tibt/config
echo $flow >> /home/root/tibt/config
echo $baud_rate >> /home/root/tibt/config.

Visakh 

  • Yes, with TI processor SDK releases with AM335x, Bluez is enabled.

  • Hi Hari,

    Thanks.

    This is the status of error I am getting.

    it seems hci is not up. when checking hcitool commands this not listing anything.

    Regards,

    Visakh SV

  • Which TI processor SDK, did you use? which kernel version? and did you rebuild the kernel and modules Or did you directly use the release binaries?

    Thanks

  • Hi Hari,

    I neither rebuild the kernel and modules, nor prepare SD card with prebuilt images. I have just used the SD card supplied with EVM kit,

    Linux version is 4.4.41

    cat /proc/version
    Linux version 4.4.41-gf9f6f0db2d (gtbldadm@ubuntu-16) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #1 PREEMPT Wed Mar 29 17:37:15 EDT 2017.

    Regards

  • Also,

    cat /etc/os-release
    ID="arago"
    NAME="Arago"
    VERSION="2016.12"
    VERSION_ID="2016.12"
    PRETTY_NAME="Arago 2016.12"

  • This is an old release. Can you try with a more recent release?

    www.ti.com/.../PROCESSOR-SDK-AM335X

    Thanks

    Hari

  • Hi Hari,

    Yes. I did creating SD card it through windows and disk imager utility (PROCESSOR-SDK-LINUX-AM335X). Kernel version,

    Linux version 4.19.94-gbe5389fd85 (oe-user@oe-host) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 PREEMPT Sun Apr 19 03:43:09 UTC 2020

    and,

    root@am335x-evm:/lib/firmware# cat /etc/os-release
    ID="arago"
    NAME="Arago"
    VERSION="2019.11"
    VERSION_ID="2019.11"
    PRETTY_NAME="Arago 2019.11"

    the result of hci attach is,

    root@am335x-evm:/home# hciattach ttyS1 texas 3000000 &
    [1] 1021
    root@am335x-evm:/home# Found a Texas Instruments' chip!
    Firmware file : /lib/firmware/ti-connectivity/TIInit_11.8.32.bts
    Loaded BTS script version 1
    texas: changing baud rate to 3000000, flow control to 1
    [ 152.470765] Bluetooth: Core ver 2.22
    [ 152.485927] NET: Registered protocol family 31
    [ 152.495200] Bluetooth: HCI device and connection manager initialized
    [ 152.503134] Bluetooth: HCI socket layer initialized
    [ 152.508852] Bluetooth: L2CAP socket layer initialized
    [ 152.514021] Bluetooth: SCO socket layer initialized
    [ 152.534972] Bluetooth: HCI UART driver ver 2.3
    [ 152.548166] Bluetooth: HCI UART protocol H4 registered
    [ 152.562512] Bluetooth: HCI UART protocol Broadcom registered
    Can't set device: Protocol not supported
    Can't initialize device: Protocol not supported.

    when tried updating bluez-utils it looks like opkg feed is removed.

    root@am335x-evm:# opkg update bluez-utils
    Downloading gtjenkins.itg.ti.com/arago-src-mirror/pkg_feeds/06.03.00.106//linux/all/Packages.gz.
    wget: bad address 'gtjenkins.itg.ti.com'

    regards,

    Visakh

  • Oops. It seems the kernel is not built with HCI_LL protocol. Can, you enable HCI_UART_LL and rebuild the kernel and modules?

  • Hi Hari,

    Thanks for the quick response.

    Ok. for this I need to setup a Linux  environment, currently this is not available for me. I shall revert once I done with it.

    Regards,

    Visakh

  • Ok.. Let us know how it goes..

    Thanks