7 years, 6 months ago.

Using MAX32630FTHR PAN1326B bluetooth module

Are there any examples or a library that show how to use the PAN1326B Bluetooth module on this board? Specifically I am interested in using it as a Serial link.

An additional question. I notice that the mbed module has some BLE classes. Can these be used with this module to provide BLE functionality?

Thanks, Dan

Question relating to:

MAX32630 Rapid Development Platform

4 Answers

7 years, 6 months ago.

Hi Dan. I looks like there's no official Bluetooth support for this board. We're at BlueKitchen(https://bluekitchen-gmbh.com) just got one and we plan to make a port of our BTstack (http://btstack.org) Bluetooth Stack. Stay tuned...

Hey Matthias, your stack looks like it'd be a great addition! I'm planning to use another radio for my initial build because of time constraints but I would be interested for integrating your library in a future build. Thank you.

posted by Dan Julio 18 May 2017
6 years, 10 months ago.

Hi,
You can use this BLE HearRate example available:
https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-HeartRate/
You should be able to find other examples of the services like UART in the MBED BLE team https://os.mbed.com/teams/Bluetooth-Low-Energy
For example this UART Loopback code:
https://os.mbed.com/teams/Bluetooth-Low-Energy/code/BLE_LoopbackUART/

I implemented it with the Adafruit Bluefruit Le Connect App
Here are the links:
iOS App and Setup
https://learn.adafruit.com/bluefruit-le-connect-for-ios/ios-setup
Android App:
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwjJ29-pxsvYAhUJwGMKHfEHAGEQFggnMAA&url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.adafruit.bluefruit.le.connect%26hl%3Den&usg=AOvVaw0bSWaQPK2DxKyCXpJEspT5

I'm trying to run the BLE HeartRate example available here: https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-HeartRate/

It's supposed to work with this board but I always see this error:

DEVICE MAC ADDRESS: cc:78:ab:60:a0:28 _ble.gap().setAdvertisingParameters() failed

Can you help me? Maybe I'm doing something wrong

posted by yugo am 29 Apr 2019

This board was working with older OS releases. I will suggest to look into the classic BLE examples when working with the MAX32630FTH.

You can find the examples under the deprecated MBED BLE repository in github: https://github.com/ARMmbed/mbed-os-example-ble/tree/master/deprecated

Here is the sample I used for Heart Rate: https://github.com/ARMmbed/mbed-os-example-ble/tree/master/deprecated/BLE_HeartRate

You can use all the same files and a version of the mbed-os 5.11 or 5.10.

The error you are seeing, I also get when I compile the newer version of the BLE examples with the latest mbedOS.

posted by Felipe Neira 29 Apr 2019
5 years, 1 month ago.

Under this link https://os.mbed.com/teams/mbed-os-examples/code/ one can find updated official mbed-os examples. There are a few ble examples among them. Most of them will work on the MAX32630FTHR with this trick: After importing the desired example in the online compiler, downgrade to the revision dated from 14 Dec 2018 (main.cpp has been rewritten in newer revisions). After you are on an older revision of the example, it will work again on this board. You can even update the mbed-os version of the example to 5.14 after the above downgrade of the example's main.cpp, it will still work on the newest mbed-os. So the issue is not related with mbed-os itself, but they did not test this board as they reimplemented the examples.

Thanks, can confirm that https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-HeartRate/ works with your "Trick"

posted by Hanson Schmidt-Cornelius 23 Nov 2019
5 years, 6 months ago.

Thanks, I have tried with differents mbed-os versions and at the end it works! I'm using mbed os 5.6.0 and ble heart example revision for mbed 5.6.0.