Bluetooth success story

is there any success-story of Using bluetooth on mangOH RED? on board or IoT extension card or USB dongle??

so far it seems than on board bluetooth not yet supported (Bluetooth (LE) on MangOH Red) and using IoT extension card is not really works (Bluetooth WL18xx driver for mangOH: how to flash the driver)

please help?? can anybody say that “yes! we can use Bluetooth with MangOH RED” and share recipe of success?

Yes, we’ve used the WiFi Bluetooth IoT expansion card from Talon on one of our projects with the Red to good success. Check out “BluetoothUtil” among the demos in the mangOH repository. You can then use DBus to communicate with the blueZ layer to perform Bluetooth operations.

thank you! but before using BluetoothUtil bluetooth driver must be enabled in kernel, built with yocto according to https://github.com/mangOH/mangOH/wiki/Bluetooth-WL18xx-driver-for-mangOH right? and then flashed to board. did you do this? how did you flash image? flashing “yocto_wp85.cwe” using Windows Developer Studio killed board Board not bootable after reflashing
Can you please describe - how exatly did you do this ??

Yes, we rebuilt the kernel with Bluetooth support. I’m not sure how it works on Windows, but on Linux we used swicwe to stitch together the new yocto cwe with the bootloader, modem firmware and legato images into a single spk file and flashed it using swiflash (fdt2 on Windows also works for flashing). I don’t think it’s necessary to use all those components if your device already has them installed but we did it to make sure that everything’s on the correct version.

we used swicwe to stitch together the new yocto cwe with the bootloader, modem firmware and legato images into a single spk file and flashed it using swiflash
yes! I thought it should be like this. but where did you got instructions ?
can you please share it? step by step description. was it VM or hardware Linux?
Does it means that steps described here https://github.com/mangOH/mangOH/wiki/Bluetooth-WL18xx-driver-for-mangOH are wrong?

The order of operations are described in that github wiki link, but I remember using linux-quic instead of linux-yocto. We followed the instructions here
Building Custom Yocto Image to build the yocto image and simply enabled Bluetooth driver support from the menuconfig.

For instructions on using swicwe we followed this, https://source.sierrawireless.com/resources/airprime/software/swicwe/

So our steps were

  1. Follow the instructions in https://github.com/mangOH/mangOH/wiki/Bluetooth-WL18xx-driver-for-mangOH and Building Custom Yocto Image to build our yocto image.
  2. Download compatible modem firmware and bootloader from https://source.sierrawireless.com for our WP module.
  3. Build our applications into a legato image.
  4. Stich all of the above into a single image using swicwe https://source.sierrawireless.com/resources/airprime/software/swicwe/
  5. Flash using swiflash https://source.sierrawireless.com/resources/airprime/software/swiflash/

We used a native Linux box as we couldn’t get some of these tools working on a VM.

1 Like

thank you so much!! you’re saving our lives!! :slight_smile:

which type of chip did you use? WP7702 ?

We used a WP7603, but I don’t think the module type matters here.