Reputation: 746
I'd like suggestions for a mature bluetooth stack to use on an embedded system. It's imperative that it's lightweight and with a relatively low footprint.
Preferably it is also open source, has support for BLE and can run without an OS. But those are not strictly required.
It doesn't necessarily have to be free. It will also be used commercially.
I'm running a STM32 processor (ARM), which it should either directly support or be general enough that it would be easy to port it.
Kind regards
Upvotes: 3
Views: 6499
Reputation: 96828
Apache now has an open source BLE stack called NimBLE that runs on its MyNewt OS. It runs on nRF5x chips and is the only vaguely complete open source BLE stack. I haven't tried it yet but it looks pretty good.
Edit: I've tried it. As of now (September 2016), it does work - you can read/write/notify characteristics and so on. There are some missing features, but it is definitely usable.
Be warned, the code is quite well written (e.g. they've even documented which functions run in interrupt contexts!) but it is classic C89, so there is lots of manual memory management, worrying pointer magic, trusting array lengths and so on. There's also no support for C++ in their newt
build system.
Upvotes: 3
Reputation: 476
Please take a look at our BTstack Bluetooth Stack at http://bluekitchen-gmbh.com
It seems to meet all your requirements.
Upvotes: 0
Reputation: 11
You might take a look at Smalltooth. It targets PIC24 and PIC32, but might be adaptable to ARM. SmallTooth Bluetooth Stack is an open source Bluetooth stack coded from scratch with an embedded device in mind.
Upvotes: 1
Reputation: 4207
What Bluetooth Chip or Module are you using?
You may find that the chip manufacturer can provide you with a embedded BT stack.
For example, CSR (Cambridge Silicon Radio), purveyors of fine Bluetooth 4.0 chips, have a product called Synergy, which is a BT stack for embedded devices. There is an Android and a WinCE version but there is also a core version, which has and can be ported to many different OS and HW platforms.
www.csrsupport.com
I think Broadcom make BT chips too.
Upvotes: 1