This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE docs to read which helps me understand ble_evt_t?

Hello, as it is clearly understood (by everyone developing using NordSemi's SOCs), this struct "ble_evt_t" Hello, as it is clearly understood (by everyone developing using NordSemi's SOCs), this struct "ble_evt_t"

image description

in BLE.h is of paramount importance. I'm kinda new to all this and I wanna know what are the documents that I must read on BLE protocol which will help me comprehend this particular struct, i.e. wha kind of members it has?

I wanna take some shortcuts here and prioritize my time of work. Please try not give me answers like "just go to the bluetooth official site and download the specification 4.x", thank you. Please be a bit more specific.

Parents
  • The main source of information is infocenter. Each struct, define and type is described there along with references to other relevant stuff. For ble_evt_t: infocenter.nordicsemi.com/.../structble__gap__evt__t.html

    Also in order to see how things work personally I prefer just using static analysis tools most IDEs provide like 'go to reference'. Header files are pretty well commented so it's often the fastest way of discovering what parameters given operation requires and where they are passed to application code.

    Also if I can recommend something - start from the smallest example you can find and analyze how it works. Probably going blinky (no BLE, no softdevice) --> beacon (learn how to init BLE and make board advertise) --> app_template (learn about adding existing services) --> example with custom service code (how service works and what events have to be processed).

    If you need more info on how BLE as a standard works good book may be helpful. I personally started my developer experience with Nordic by reading this: www.amazon.com/.../1491949511

    It's pretty simplistic but was very helpful at the beginning. When you have already some working code and you'll want to find more then it'll be time to read the official BLE spec documents. For me it was very precious and often humbling experience because it quickly showed where I lacked knowledge and things that I misunderstood. But it's rather experience for later.

Reply
  • The main source of information is infocenter. Each struct, define and type is described there along with references to other relevant stuff. For ble_evt_t: infocenter.nordicsemi.com/.../structble__gap__evt__t.html

    Also in order to see how things work personally I prefer just using static analysis tools most IDEs provide like 'go to reference'. Header files are pretty well commented so it's often the fastest way of discovering what parameters given operation requires and where they are passed to application code.

    Also if I can recommend something - start from the smallest example you can find and analyze how it works. Probably going blinky (no BLE, no softdevice) --> beacon (learn how to init BLE and make board advertise) --> app_template (learn about adding existing services) --> example with custom service code (how service works and what events have to be processed).

    If you need more info on how BLE as a standard works good book may be helpful. I personally started my developer experience with Nordic by reading this: www.amazon.com/.../1491949511

    It's pretty simplistic but was very helpful at the beginning. When you have already some working code and you'll want to find more then it'll be time to read the official BLE spec documents. For me it was very precious and often humbling experience because it quickly showed where I lacked knowledge and things that I misunderstood. But it's rather experience for later.

Children
No Data
Related