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.

WL1271 Bluetooth can't piscan

Other Parts Discussed in Thread: WL1271

Dear Sir,

I can't scan bluetooth, Anyone have any idea?
Using platform following:-

CPU: OMAP3730
OS: Linux 2.6.32
PSP: ti-dvsdk_dm3730-evm_4_02_00_06 + patch wlan_BT from TI website.

# lsmod
Module                  Size  Used by
sco                     7831  2
bnep                    9176  2
hci_uart               14480  3
bufferclass_ti          4684  0
omaplfb                 8286  0
pvrsrvkm              144324  2 bufferclass_ti,omaplfb
rfcomm                 32383  4
ipv6                  244139  12
hidp                   10900  0
l2cap                  29713  17 bnep,rfcomm,hidp
bluetooth              48394  10 sco,bnep,hci_uart,rfcomm,hidp,l2cap
rfkill                 14210  2 bluetooth


# ./wl1271bt_enable /dev/ttyS0 &

[  106.052001] Set BT_EN of WL1271
[  106.061401] WL1271: Powering on

# hciattach /dev/ttyS0 texas 3000000 &
# Found a Texas Instruments' chip!
Firmware file : /lib/firmware/TIInit_7.2.31.bts
Loaded BTS script version 1
texas: changing baud rate to 3000000, flow control to 1
[  505.584320] Bluetooth: HCI UART driver ver 2.2
[  505.589172] Bluetooth: HCI H4 protocol initialized
[  505.593994] Bluetooth: HCI BCSP protocol initialized
[  505.599243] Bluetooth: HCILL protocol initialized
[  505.705017] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[  505.710357] Bluetooth: BNEP filters: protocol multicast
[  505.736358] Bluetooth: SCO (Voice Link) ver 0.6
[  505.740936] Bluetooth: SCO socket layer initialized
Device setup complete

#hciconfig hci0 piscan
Can't set scan mode on hci0: Connection timed out (110)can

# hciconfig
hci0: Type: BR/EDR Bus: UART
BD Address: CC:8C:E3:F1:23:56 ACL MTU: 1021:4 SCO MTU: 180:4
UP RUNNING PSCAN
RX bytes:713 acl:0 sco:0 events:25 errors:0
TX bytes:630 acl:0 sco:0 commands:25 errors:0


Thank you in advance.
Sajja A.


  • Sajja,

    From the logs shown above, it seems that you are using a custom OMAP 3730 board with the WL1271 and the uart interface for the BT is UART1. When the hciattach command was executed, the BTS firmware script  was downloaded to the chip and the device setup completed successfully. It means the uart interface functions properly.  The error "Can't set scan mode on hci0: Connection timed out (110)can" indicates that the chip is no longer responding to the host omap.

    Is the WL1271 module from LSR / Murata /Jorjin? The bts file included in the TI SDK is for LSR module. There could be slight difference in BTS file from other vendors. Could you please verify whether the correct firmware bts script is being used in your system?   Do you have similar results when the WLAN is up or down?

    Regards

    Sinoj

  • Dear Sinoj,

    Thank you very much,

    1. Custom OMAP3730, and I'm connect BT with UART1,
    2. WL1271 module from Jorjin,

    My WLAN WLAN1271 are working well, didn't have any problem yet ( SDIO driver  +  "firmware.bin" 

    in TI SDK (http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_4_00/4_01_00_09/index_FDS.html at WLAN/Bluetooth applications and drivers)

     

    Could you please help me to locate the bts sctipt from Jorjin ? or Could you share the BTS firmware that running at lower speed like 2M or 115200 ?

    Thank you in advance.

    Sajja A.

     

  • Sajja,

    Please go to  below post to download 115K bts file; 

    http://e2e.ti.com/support/low_power_rf/f/307/t/135887.aspx#518847

    However, i don't think the problem is due to higher baud rate. To obtain right bts firmware for Jorjin module, you may need to contact Jorjin support team. Please refer to the below thread also;

    http://e2e.ti.com/support/low_power_rf/f/307/t/110330.aspx#391089

    Regards

    Sinoj

     

  • Dear Sinoj,

    Thank you for you reply, after I testing with both firmware BTS 2.25M, 115k  the result are same (error)

    Error after command piscan.

    #hciconfig hci0 piscan
    Can't set scan mode on hci0: Connection timed out (110)


    So I'm already request firmware BTS to Jorjin support team (if have)


    But I think firmware are load to TI WL1271 core , and Various Module should difference on RF part only , but
    core and communication should be same. then I should communicate with WL1271 after initialize TI core

    BTW, Any suggestion to us , please help.

    Sajja A.


     

     

  • Sajja,

    Thanks for the update.

    There may be some clock and sleep mode configurations specific to Jorjin module in the bts file.   Please let us know the results once you try new bts file from Jorjin.

    Regards

    Sinoj

  • Sajja,

         Could you share with us the BTS file you are using please?

    Regards,

    ~Miguel

  • Dear Miguel,


    I still waiting Jorjin to sent BTS file to us, It' seem too slow response.

    But All 3 BTS files I using from TI , ( still not working with Jorjin module)

    1.From SDK

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_4_00/4_01_00_09/index_FDS.html

    Section TMS320DM3730 DVSDK

     

    2. From Sinoj Advise
    BTS file for 2.25Mhz clock (see below) please modify the name to TIInit_7.2.31.bts

    3. Form Sinoj Advise
    115200 the BTS file is: (see below) and modify its name to be TIInit_7.2.31.bts

    Have a nice day.
    Sajja A.

  • Dear Sinoj

    I already make Bluetooth scan ID already, using firmware BTS form TI SDK.

    by enable WLAN (./install.sh on /ti-wireless directory)
    before using Bluetooth on Jorjin module.

    that mean right now, I can't using Bluetooth standalone. (need to enable WLAN together)

    btw I still pending BTS file from Jorjin, once I have tested will let you know. Thank you.

    +++++++++++++++++++++++++++++++++++++++++++++++++++++
                   MAIN NENU
    +++++++++++++++++++++++++++++++++++++++++++++++++++++
        1 - BT Scan Remote Devices
        2 - BT Get capabilities of Remote Device
        3 - OPP  Test
        4 - FTP  Test
        5 - HID  Test
        6 - HSP  Test
        7 - A2DP Test
        8 - Pair Remote Device
        9 - Unpair Remote Device
        10 - Exit Without BT Shut Down
        11 - Exit With BT Shut Down
    ====> 1

    /*
     * ########### BT-Scan #############
     * Scan for the remote BT devices
     * #################################
     */

    Scanning ...
            00:24:04:74:CB:EC       Nokia
            EC:55:F9:CB:99:4E       NB-PC

  • Sajja A,

    Nice to see your message.

    Hopefully, BT will work with a proper BTS script file.

    Regards

    Sinoj

     

  • Sajja,

         Please try attached SP. Let us know which one works for you.

    Regards,

    ~Miguel5635.BT_firmware.zip

  • Dear Sinoj,

    I just have firmware from Jorjin I have test but IT's need to enable wifi before using Bluetooth,
    Thank you for your support.

    Sajja A.

  • Dear Sinoj.

    I just have firmware from Jorjin I have test but same as IT's firmware that  need to enable wifi before using Bluetooth,


    Dear Miguel

    After I test your zip file 5635.BT_5F00_firmware.zip have summary/Result are below,

    1.bluetooth_init_wl1271_ 2.31_noSleep.bts from your zip file

    this firmware (1)  can use bluetooth alone without enable wifi.

    2.bluetooth_init_wl1271_ 2.31_xtal.bts
    3.From SDK  http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_4_00/4_01_00_09/index_FDS.html
    4.BTS file for 2.25Mhz
    5.BTS file for 115200
    6. Jorjin bts for 3Mhz

    Those firmware (2-6) can't using bluetooh alone, need to enable wifi before use BT.

    Could I know which one are most stable firmware ? or TI recommend ?

    Thank you in advance.



  • Sajja,

    Do you know if the module you are using has a XTAL for the fast clock source?

    Regards,

    Miguel

  • Dear Miguel ,

    Fast Clock source are 38.4MHz 

    Best Regards,
    Sajja A.  

  • Sajja,

    But is it an oscillator or a crystal? What is the module part number?

    Rgds,

    Miguel