Custom BLE characteristics/services example? (SAMB11)

Go To Last Post
9 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The Atmel documentation is powerfully bad - is there any example of creating a custom service and/or characteristic I can take a look at ?  So far, the Nordic BLE documentation has been more helpful than the Atmel stuff despite using an Atmel chip.  ;)

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Indeed, the Atmel documentation for the SAMB11 chip is very very bad. What you can do is take one of the BLE examples, like the battery service or the Serial Chat Service, you can look at the code how things work, however it is not easily to understand.

The documentation attached with these examples are usable to build and start the example but for explanation how things works and how to start your own custom BLE application you can throw it in the trashbin.

All the examples uses the BLE library with the at_ble_api.h file. In this file every function has a small description about the meaning of these functions.

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I did eventually figure out that the "custom serial chat" app was what I was looking for.   I was thrown by the fact that the Atmel code isn't really in a library, it's in a set of example applications - and even the "BLE manager", which seems to be intended for use by user-built apps, has hard-coded garbage for the example apps all over it.  :(  The code is there for the most part, you just have to wade through lots of ill-documented CPP macros.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Riz, you mentioned the Nordic BLE documentation, could you please post a link? I went to Nordic site, all the documents I saw there are about their own chips. Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sv3905 wrote:
I went to Nordic site, all the documents I saw there are about their own chips

Well, of course they are!

 

Just like all the documents on the Atmel Microchip site are about their own chips!

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I see some documentation available on BTLC1000 product page which shows how we can create custom service implementation. check this out!!!!! http://ww1.microchip.com/downloa...

enjoy !!!!

happy weekend!!!!!!!!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks, Avngers92, I read the link you posted briefly and that seems to be what I was looking for. Have a nice weekend!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think I've found the documents on Nordic site that Riz was talking about. In case some beginners like me are interested:

 

https://devzone.nordicsemi.com/t...

 

In the middle of the page, it has good documents on Bluetooth coding:

 

 

I hope Microchip could come up with something similar with SAMB11.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

 

 

 

Also what is the purpose of BLE Manager  

S

Last Edited: Wed. Mar 11, 2020 - 11:08 AM