• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » WLAN Applications Forum » bluetooth with omap-l138 / wl1271
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

bluetooth with omap-l138 / wl1271

bluetooth with omap-l138 / wl1271

This question is not answered
Arnaud Rebillout
Posted by Arnaud Rebillout
on Sep 21 2011 15:54 PM
Prodigy80 points

Hi everyone,

here we are using the WL1271 Daughter Card with an OMAP-L138 evaluation board. We are interested in the Bluetooth feature. We need it to work asap for our project.

Well, for the moment it's a complete failure. After browsing all the various wiki pages, and exchanging a few mails with the support, it doesn't go better. Let me sum up the things we did :

 * first, we tried the official SDK (DVSDK, psp03.20.00.13 ). We followed the instructions from this page http://processors.wiki.ti.com/index.php/Enabling_UART1_on_AM18X/DA850/OMAP-L138_running_Linux to enable uart1 and disable sound system, since they can't work together. But it didn't do the trick.

* we decided to give a try to the AM18XX SDK. As you perfectly know the AM18x and OMAP-L138 processors are identical with the exception of the DSP. But the DSP is not involved at all for the Bluetooth operation. See this page : http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/p/99335/348909.aspx.  The psp in this SDK is newer ( 03.21.00.04 ), so we thought we might have a good chance. But the result was the same...

What result am I talking about  ? Well, if I launch the script BT_demo I got :

$ bluetoothd -n &
bluetoothd[1152]: Starting SDP server
bluetoothd[1152]: Failed to open RFKILL control device
$ insmod gpio_en.ko
Gpio value is :15
WL1271: BT Enable
$ hciattach /dev/ttyS1 texas 2000000
Found a Texas Instruments' chip!
Firmware file : /lib/firmware/TIInit_7.2.31.bts
Loaded BTS script version 1
texas: changing baud rate to 2000000, flow control to 1
Initialization timed out.


I got the same result with the 2 methods mentioned above.

So we also tried different things, like using the command:

$ hciattach /dev/ttyS1 any

which give better results, the Bluetooth device is detected, we can see it and launch a scan with hcitool, but unfortunately the scan doesn't detect any Bluetooth device, and no device detect the WL1271.

We also browsed the web for the file TIInit_7.2.31.bts, and amazingly found different versions of it : same name, but different size. With one of them we got the result :

$ hciattach /dev/ttyS1 texas 2000000
Found a Texas Instruments' chip!
Firmware file : /lib/firmware/TIInit_7.2.31.bts
Loaded BTS script version 1
ll_recv: Unknown HCI packet type 00
ll_recv: Unknown HCI packet type 00
ll_recv: Unknown HCI packet type 00
ll_recv: Unknown HCI packet type 00
ll_recv: Unknown HCI packet type 00
ll_recv: Unknown HCI packet type 00
ll_recv: Unknown HCI packet type 00
ll_recv: Unknown HCI packet type 00
Initialization timed out.


Which is not brilliant, but looks a little bit more alive.



In our communication with the support, we failed to have answers to simple questions like :

* Does anyone could already make it work ?

* Is it possible to have the source code of some of the things provided in the rootfs of the AM18XX SDK, like :

   * the mysterious gpio_en module, which seems to play an important part in the process

   * the patches for bluez and bluetoothd, in case TI is using modified versions of this software ?



Well, basically, anything that could help us to go forward, any idea would be greatly appreciated.

Thanks a lot

Arnaud

bluetooth omap-l138 OMAP-L138 AM18xx WL1271
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Eyal a
    Posted by Eyal a
    on Sep 29 2011 19:05 PM
    Genius9240 points

    Hi,

    Sorry for the late response.

    we don’t support the OMAPL138 with Bluetooth since it has no flow control support (CTS line is used for some other function) and for that reason the HCI level cannot work at all since the HCI layer need the hardware flow control in order to work, so OMAPL138 does not supports Bluetooth.

    As for the AM18x platform, it does support Bluetooth. So the question is are you trying to run the BT_Demo.sh script on AM18x EVM and it is not working? Or is it customized board? Since in case it is customized board then maybe there is an issue with the flow control (CTS ,RTS) or the BT Enable signal (GPIO)

    Regards,

    Eyal

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Arnaud Rebillout
    Posted by Arnaud Rebillout
    on Oct 03 2011 02:29 AM
    Prodigy80 points

    Hi Eyal, thanks for your response,

    as I said we are using the OMAPl138 EVM. You said the OMAPL138 doesn't support Bluetooth, but as far as I understood ( tell me if I'm wrong ), this issue can be solved by configuring the kernel. Linux configuration allows to disable McASP, and enable flow control on UART1. After that, there are also some GPIOs that need to be configured properly.

    That's why I said in my previous post I use the AM18x SDK with the OMAPL138 EVM. The kernel provided in this SDK is already configured to enable the flow control on UART1. Furthermore, the rootfs provided contains the module gpio_en.ko for the GPIOs configuration. So according to me, using the AM18x SDK with the OMAPL138 EVM should work, since the only difference between the two processors is only the DSP, which is not involved in the bluetooth process.

    So I do believe we have some other problem here, or maybe other things I just don't understand properly ?

    Thank you for your reply,

    Arnaud

    bluetooth omap-l138 OMAP-L138 AM18xx WL1271
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Eyal a
    Posted by Eyal a
    on Oct 04 2011 17:22 PM
    Genius9240 points

    Hi Arnaud,

    I think you are right, let me put a complete SD card image in FTP site tomorrow that we use to run WLAN and BT on AM18x platform. and please try it on the OMAPL138 EVM that you have and lets see if it works. then if it works then we will figure out how to continue.

    I will send the FTP site information tomorrow on that e2e query.

    Regards,

    Eyal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Eyal a
    Posted by Eyal a
    on Oct 04 2011 17:26 PM
    Genius9240 points

    sorry that your name was underline and red, i was left by the spelling check

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Arnaud Rebillout
    Posted by Arnaud Rebillout
    on Oct 05 2011 02:40 AM
    Prodigy80 points

    No problem, thank you for your reply

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Eyal a
    Posted by Eyal a
    on Oct 05 2011 09:52 AM
    Genius9240 points

    Hi Arnaud,

    one option is that you have the UART that is attached to the Bluetooth with default frequency (that is 115200) which cannot be modified by the User command, for that I had attached a BTS file that works with the default UART frequency, please replace the one you have in the file system with that one and boot the board and try to bring up the BT again.

    the BTS file is:  1641.TIInit_7.2.31.bts     and modify its name to be TIInit_7.2.31.bts

    As an alternative please download our Open source images on the AM18x platform to verify if the BT will work.

    Please find the link to the SDK image (SD card)  in

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/sdk/AM1x/latest/index_FDS.html  and download the am180x-evm-sdk-bin-05.02.00.00.tar.gz  

    Then in order to operate the Bluetooth please visit our WiKi page for instructions in http://processors.wiki.ti.com/index.php/AM37x_Wireless_Connectivity_NLCP_Bluetooth_Terminal

    Regards,

    Eyal

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Arnaud Rebillout
    Posted by Arnaud Rebillout
    on Oct 05 2011 11:34 AM
    Prodigy80 points

    Hi Eyal, have a look at this !

    $ hciattach /dev/ttyS1 texas 115200 &
    Found a Texas Instruments' chip!
    Firmware file : /lib/firmware/TIInit_7.2.31.bts
    Loaded BTS script version 1
    bluetoothd[660]: HCI dev 0 registered
    bluetoothd[660]: Listening for HCI events on hci0
    bluetoothd[660]: HCI dev 0 up
    bluetoothd[660]: Parsing /etc/bluetooth/serial.conf failed: No such file or directory
    bluetoothd[660]: Could not get the contents of DMI chassis type
    bluetoothd[660]: Adapter /org/bluez/660/hci0 has been enabled
    Device setup complete

    $ hciconfig
    hci0:   Type: BR/EDR  Bus: UART
            BD Address: 64:9C:8E:AE:4E:44  ACL MTU: 1021:4  SCO MTU: 180:4
            UP RUNNING PSCAN ISCAN
            RX bytes:1903 acl:0 sco:0 events:43 errors:0
            TX bytes:1206 acl:0 sco:0 commands:34 errors:0

    $ hcitool scan --refresh
    Scanning ...
            F0:B5:79:08:3D:74    MacBook Pro 13" Core 2 Duo
            4C:E8:FE:52:EA:25    ARNAUD-SYSCOM
            11:11:11:11:11:11    laptop-d630-debian-0

    I tried the firmware, and it looks a lot better ! I guess that now, the only thing left is to configure the UART1 properly in the kernel, in order to have a full speed Bluetooth. I guess that it should be easy by looking at the sources of the AM18X SDK. I'll tell you if I have problems with that.

    Thanks a lot !

    bluetooth omap-l138 OMAP-L138 AM18xx WL1271
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Eyal a
    Posted by Eyal a
    on Oct 06 2011 10:17 AM
    Genius9240 points

    Hi Arnaud,

    thanks for the good news :) 

    Regards,

    Eyal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • onsonck
    Posted by onsonck
    on Oct 18 2011 10:58 AM
    Prodigy90 points

    Hi Eyal,

     

      I was able to use your 1641.TIInit_7.2.31.bts to get my bluetooth running from a imx53, thanks for making it available.

      Is it possible to get a version of  TIInit_7.2.31.bts that goes at 2.5 MBits/sec?  Is it possible for me to generate one that goes at X baud rate?

     

      Thanks,

     

      Rick

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Eyal a
    Posted by Eyal a
    on Oct 19 2011 06:59 AM
    Genius9240 points

    Hi Rick,

    it will not be possible for you to generate it since the tools for that requires NDA agreement with TI, I will be able to generate it for you however only next week, since we have a holiday now and i am not at work

    Regards,

    Eyal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • onsonck
    Posted by onsonck
    on Oct 27 2011 09:25 AM
    Prodigy90 points

    Hi Eyal,

     

      Okay, thanks.  Please post or send a firmware running at about 2.25 MBits/sec.

      Thanks much.

      Rick

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Eyal a
    Posted by Eyal a
    on Oct 31 2011 18:11 PM
    Genius9240 points

    Hi Rick

    attached please find BTS file for 2.25Mhz clock 6747.TIInit_7.2.31_2.25Mhz.bts please modify the name to TIInit_7.2.31.bts

     

    Regards,

    Eyal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Howard Halili
    Posted by Howard Halili
    on Jun 28 2012 19:53 PM
    Prodigy20 points

    Hi Eyal,

    Kindly generate an initscript (TIInit_7.6.15.bts) for WL1271L BT with 115200 baudrate. Thanks.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • vic vic
    Posted by vic vic
    on Jul 23 2012 21:53 PM
    Prodigy90 points

    hi everyone,

    in the Bluetooth with OMAPL138,  there is a step to insert the module gpio_en.ko.  "$ insmod gpio_en.ko"

    I follow the steps in the wiki below, but i cannot get the gpio_en.ko

    http://processors.wiki.ti.com/index.php/Open_source_Wireless_Connectivity_Bluetooth_components

    How can i generate gpio_en.ko? I am using ti-dvsdk_omapl138-evm_04_03_00_06

    victor


    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • vic vic
    Posted by vic vic
    on Jul 24 2012 05:03 AM
    Prodigy90 points

    hi,

    you can get from here:

    git clone git://github.com/TI-ECS/bt_enable.git
    cd bt_enable
    git reset --hard dd75971705ada8fb0e88a0fb3f68833086c5bba4
    patch -p1 < 0001-bt-enable-standalone-makefile.patch
    cp ./gpio_en_${PLATFORM_DIR}.c ./gpio_en.c
    make DEST_DIR=${ROOTFS} KERNEL_DIR=${KLIB_BUILD}  install || return
    
    
    patch from:
     http://processors.wiki.ti.com/images/8/8f/Bt-enable-standalone-makefile.zip
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use