Developing Bluetooth Low Energy products using nRF Connect SDK

  Рет қаралды 20,721

Nordic Semiconductor

Nordic Semiconductor

2 жыл бұрын

In this webinar, we show you how to get started with Bluetooth Low Energy development using our own nRF Connect SDK. You will learn how to set up the development environment and how to use the Bluetooth LE tools.
If you want to follow along, we recommend installing these first:
- VS Code and the nRF Connect for VS Code (www.nordicsemi.com/Products/D...)
- nRF Command Line Tools (www.nordicsemi.com/Products/D...)
- nRF Connect for Desktop (www.nordicsemi.com/Products/D...)
- Projects and notes from the webinar (devzone.nordicsemi.com/cfs-fi...)
This is a recording of a webinar held on December 1, 2021. To watch the full presentation with the Q&A, click here: webinars.nordicsemi.com/devel...

Пікірлер: 56
@bobby9568
@bobby9568 2 жыл бұрын
We need more of these kind of tutorial videos to be able to work with nordic devices.
@NordicSemi
@NordicSemi 2 жыл бұрын
Thanks for your input! We would also recommend you to check out our nRF Connect SDK Fundamentals course, that was launched a few weeks ago: hubs.li/Q018Gqb60
@bobby9568
@bobby9568 2 жыл бұрын
@@NordicSemi Very helpful, do you provide something similar but with BLE as its main topic?
@NordicSemi
@NordicSemi 2 жыл бұрын
@@bobby9568 Thanks! We'll continue to launch new courses with topics related to our technology offerings.
@MrIgorek123
@MrIgorek123 2 жыл бұрын
Exactly what I needed, thanks!
@NordicSemi
@NordicSemi 2 жыл бұрын
Glad to hear!
@tharangachaminda
@tharangachaminda Жыл бұрын
Thanks for this very explanatory tutorial. It would be great if you can explain how to handle multiple BLE connections as well.
@NordicSemi
@NordicSemi Жыл бұрын
We don't have any tutorials or examples that specifically take care of several peripheral connections at the same time, and there is no short and simple explanation for that. We recommend you to look at the connection timing chapter in the SoftDevice controller documentation, which has a good explanation of how the scheduler works: developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/softdevice_controller/doc/scheduling.html#connection-timing-as-a-central If you have follow up question we recommend you to reach out to our tech support team on DevZone: devzone.nordicsemi.com/
@user-yv5mc5qg9o
@user-yv5mc5qg9o 6 ай бұрын
I thoroughly enjoyed this tutorial. It has been a useful learning experience.
@NordicSemi
@NordicSemi 6 ай бұрын
If you are not aware, we also recommend checking out our free courses on Nordic Developer Academy: academy.nordicsemi.com/
@user-yv5mc5qg9o
@user-yv5mc5qg9o 5 ай бұрын
@@NordicSemi Are there any useful tutorials explaining how to set up the central/client side so services can be found and connected up?
@NordicSemi
@NordicSemi 5 ай бұрын
@@user-yv5mc5qg9o yes, you can can take a look at either the peripheral_uart and the central_uart . Documentation can be found here: docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/peripheral_uart/README.html However we recommend that you start with our Bluetooth Low Energy Fundamentals course on Nordic Developer Academy before moving into central/peripheral setup academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/
@user-yv5mc5qg9o
@user-yv5mc5qg9o 5 ай бұрын
@@NordicSemi I really don't understand how the examples you have given relate to the actual tutorial. I really would like to know just how to read attributes that are defined on the server side.
@NordicSemi
@NordicSemi 5 ай бұрын
@@user-yv5mc5qg9o sorry for misunderstanding what you ask for. In the Bluetooth Low Energy Fundamentals course, session 4 covers GATT operations (how to handle attributes, services and characteristics): academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-4-bluetooth-le-data-exchange/
@rajdeepdas86
@rajdeepdas86 Жыл бұрын
Very elaborate tutorial. Thank you for this. Is there a document online which describes everything in further detail?
@NordicSemi
@NordicSemi Жыл бұрын
Thank you! We recommend the following: - nRF Connect for VS Code docs: nrfconnect.github.io/vscode-nrf-connect/ - nRF Connect SDK: developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/index.html
@pivotremyloua4311
@pivotremyloua4311 2 жыл бұрын
Thank you, Exactly what i needed, how to add security for BLE connection ?
@NordicSemi
@NordicSemi 2 жыл бұрын
We recommend you to check out this guide series on DevZone "Building a Bluetooth application in the nRF Connect SDK", part 1 can be found here: devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/building-a-ble-application-on-ncs-comparing-and-contrasting-to-softdevice-based-ble-applications
@haroldritter5050
@haroldritter5050 2 жыл бұрын
Please tell me. How did you add the "custom files" to your project??? I can add them and they show up in the "Folders Section" but they do not show up under my "BLUETOOTH_REMOTE build" section as they do in your tutorial. WHY???
@NordicSemi
@NordicSemi 2 жыл бұрын
Hi Harald, we would recommend you to contact our tech support team directly on DevZone at devzone.nordicsemi.com
@haroldritter5050
@haroldritter5050 2 жыл бұрын
I see that the folder remote_services was added to the Hello World project. I have used the link and downloaded this folder and files. Can anyone tell me how to add this code and folder to an existing project in VS code? I have tried but been unsuccessful. Thank you!
@NordicSemi
@NordicSemi 2 жыл бұрын
Hi Harald, please contact our tech support team directly on DevZone at devzone.nordicsemi.com. They will be able to help out! Thanks.
@Programming_basic
@Programming_basic 6 ай бұрын
Very helpful content
@NordicSemi
@NordicSemi 5 ай бұрын
Glad to hear!
@weiliao5560
@weiliao5560 2 жыл бұрын
where can I find the source code for this webinar?
@NordicSemi
@NordicSemi 2 жыл бұрын
The source code for the sample can be found: github.com/edvinand/custom_ncs_ble_service_sample/tree/main/remote_controller
@theike58
@theike58 2 жыл бұрын
Is there source code for a Central device running on a PC. (preference would be C++ (or C#))
@NordicSemi
@NordicSemi 2 жыл бұрын
We would require more information on what you are after. Please reach out to our tech support team on DevZone with details on your usecase: devzone.nordicsemi.com/
@eminhasanov
@eminhasanov 2 ай бұрын
Thank you, is very helpful. But one question is still open for me. Why there is no option connect to nRF52 chip (not DK) via onboard normal BLE Adapter not Nordic Dongle. Or I misunderstood?
@NordicSemi
@NordicSemi Ай бұрын
Great to hear. Using our tools, it is not possible to use the onboard BLE Adapter. However, there are many 3rd party tools and guides that can help you with that. For instance, you can have a look at this one: www.npmjs.com/package/node-ble
@amoljadhav5380
@amoljadhav5380 8 ай бұрын
I need to modify advertising configuration and initial value range as dynamic . So I can add range values.
@NordicSemi
@NordicSemi 8 ай бұрын
We recommend that you reach out to our tech support team on DevZone and provide them with more details on what you need help with: devzone.nordicsemi.com/ Have you seen our Bluetooth Low Energy Fundamentals course on DevAcademy? It is a free course to get your started with Bluetooth LE. academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/
@irgendwann100
@irgendwann100 Жыл бұрын
If you work with sdk 2.2... and you have the following error ARCH_EXCEPT with reason 3/ HARD FAULT /Fault during interrupt handling add the following to your prj.config CONFIG_BT_CTLR_OPTIMIZE_FOR_SPEED=y CONFIG_BT_LL_SW_SPLIT=y speed optimizer for BLuetooth ... The Tutorial wath very helpfull thanks ... ok I recognize you are no teacher :)) sometimes the explanations are not so easy to understand ;)
@theordinarygift
@theordinarygift 2 жыл бұрын
Hello my device is not yet connected after all the installation. It keeps saying device not found. AM using Sim card and I have the thingy91 turned on and connected with usb. Any help will be appreciated.
@NordicSemi
@NordicSemi 2 жыл бұрын
Hello, please look at the Nordic Thingy:91 getting started guide here: infocenter.nordicsemi.com/pdf/Thingy91_GSG.pdf If you stil have issues with the connection please reach out directly to our tech support team on DevZone devzone.nordicsemi.com/
@theordinarygift
@theordinarygift 2 жыл бұрын
@@NordicSemi ok thanks I follow these steps again. please one more question. my project will last for 3 months can the battery last for that long? thanks
@NordicSemi
@NordicSemi 2 жыл бұрын
@@theordinarygift That is very dependent on what your application will do, how often it will transmit data, need a GPS fix, etc. You can use our Online Power Profiler Tool for nRF91 Series to estimate devzone.nordicsemi.com/power/w/opp/3/online-power-profiler-for-lte
@theordinarygift
@theordinarygift 2 жыл бұрын
@@NordicSemi General Chip nRF9160 rev2 Voltage 3.7 PSM Periodic TAU 5.0 hours Periodic TAU timer element "00011110" Active time timer element "00000000" RRC connected mode Data upload interval 4.0 hours Data upload charge 1.85 mC cDRX average current 5.87 mA cDRX charge 39.46 mC Connection management charge 24.81 mC Total charge 26.66 mC After using the power profiler link you sent to me, I had this result from the calculations. Does this result mean that it can handle 3 months data transmission with the current setting. Thanks for your help.
@NordicSemi
@NordicSemi 2 жыл бұрын
@@theordinarygift please connect with our tech support team on DevZone to get further help: devzone.nordicsemi.com/
@botabledrive
@botabledrive Жыл бұрын
Hi, thanks a lot for these webinars that are very helpful. How to get the same webinar project to work on nRF7002-DK? getting the following log message, stated to appear wen tried to enable the bt [00:00:00.254,516] remote: Initializing bluetooth [00:00:01.255,462] bt_hci_driver: Endpoint binding failed with -11 [00:00:01.255,493] bt_hci_core: HCI driver open failed (-11) [00:00:01.255,523] remote: bt_enable returned -11 [00:00:01.255,523] app: Bluetooth_init returing -11 [00:00:01.255,554] app: Running... comparing the project and other nRF connect SDK bluetooth samples, it seems that some config files were created in the case of bt sample, same with overlays and other prj.conf internal configs
@NordicSemi
@NordicSemi Жыл бұрын
Hi, we recommend you to reach out to our tech support team on DevZone for help: devzone.nordicsemi.com This application is build for the nRF52840, while there is an nRF5340 SoC on the nRF7002 DK. Check our the nRF7002 DK getting started guide to learn how to build on the nRF5340 SoC on the nRF7002 DK: developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/working_with_nrf/nrf70/gs.html#programming-the-firmware-to-the-dk
@antoniomembrino7460
@antoniomembrino7460 Жыл бұрын
is there a playlist in the channel?
@NordicSemi
@NordicSemi Жыл бұрын
Yes, we do have a playlist for nRF Connect SDK: kzbin.info/aero/PLx_tBuQ_KSqHc0SDVlb7yi2-SHCipjPDM
@antoniomembrino7460
@antoniomembrino7460 Жыл бұрын
@@NordicSemi how can I connect the sdk to the ble low energy tool? +
@NordicSemi
@NordicSemi Жыл бұрын
@@antoniomembrino7460 You're asking if the Software Development Kit (SDK) can be connected to the Bluetooth Low Energy app in the nRF Connect for Desktop, we assume you refer to the Development Kit (DK). Any nRF5x series DK can be connected to the Bluetooth Low energy app by connecting it with a USB cable to connector J2 and turn it on. Then you should see it show up when pressing "Select Device". Then this DK can act as a central or peripheral that will be able to connect to an application from the nRF Connect SDK you flash onto another DK.
@SuryaPrakashgupta-nz4nt
@SuryaPrakashgupta-nz4nt Жыл бұрын
can we try this example on nrf9160dk
@NordicSemi
@NordicSemi Жыл бұрын
Yes, you can. But we do not recommend to use a nRF9160 DK for Bluetooth Low Energy. The nRF52840 SoC on the nRF9160 DK is primarily used as a board controller, it is not designed to program, debug and develop Bluetooth LE projects on. In order for the nRF9160 DK to function as it should, you must possibly combine the board control firmware with a Bluetooth Low Energy application. If you want to develop Bluetooth Low Energy projects we recommend to get one of our Bluetooth Low DK's: www.nordicsemi.com/Products/Bluetooth-Low-Energy/Development-hardware?lang=en#infotabs
@jowlolke
@jowlolke 2 жыл бұрын
I think the declaration of the semaphore bt_init_ok is done wrong: the 1 should be a 0
@NordicSemi
@NordicSemi 2 жыл бұрын
Thank you. We'll look at it and correct it.
Жыл бұрын
No, it is correct. Initial value is 1, because at startup in bluetooth_init() function, bt_enable() is called with a callback bt_ready(). bt_ready gives the semaphore back that means, it decreases semaphore count from 1 to 0. And then, k_sem_take() can continue. I think it is not a good programming practices, I would rather initialize the semaphore with zero and at the beginning of the bt_ready() I can take the semaphore with k_sem_take().
@markuscwatson
@markuscwatson Жыл бұрын
@ I agree, best to take it and release it in the bt_ready function. More clear that way.
@leifsandstrom573
@leifsandstrom573 Жыл бұрын
@@NordicSemi Same comment as @jowlolke, issue is still present in the download. Taking a semaphore decrements the semaphore count. Current implementation will not block in bluetooth_init() even if bt_ready() is never called. BTW thanks for an informative video!
@Frankly7
@Frankly7 Жыл бұрын
I downloaded the code and flashed to the nRF5340 DK, but the Desktop BLE application says there is no response from device, and VCOM2 has this output: *** Booting Zephyr OS build v3.0.99-ncs1-1 *** [00:00:00.258,300] app: Hello World! nrf5340dk_nrf5340_cpuapp [00:00:00.258,422] remote: Initializing bluetooth... [00:00:00.268,371] remote: Couldn't start advertising (err = -11) [00:00:00.268,402] app: bt_enable returned -11 [00:00:00.268,432] app: Running...
@NordicSemi
@NordicSemi Жыл бұрын
Do be able to give you the best help, please reach out to our tech support team on DevZone: devzone.nordicsemi.com/
@cemalkaragoz4816
@cemalkaragoz4816 Жыл бұрын
i am also having the same problem. My card is nRF5340DK
@NordicSemi
@NordicSemi Жыл бұрын
@@cemalkaragoz4816 please reach out to our tech support team on DevZone, and they will help you: devzone.nordicsemi.com/
Thread aware debugging with nRF Connect SDK
8:43
Nordic Semiconductor
Рет қаралды 2,4 М.
Everything you need to know about Bluetooth Low Energy advertising
1:03:22
Nordic Semiconductor
Рет қаралды 31 М.
Зачем он туда залез?
00:25
Vlad Samokatchik
Рет қаралды 3 МЛН
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 8 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 158 МЛН
Introducing nRF Connect for VS Code
1:00:47
Nordic Semiconductor
Рет қаралды 19 М.
Bluetooth Low Energy - Protocol Stack (Part 1)
8:39
Bina Bhatt
Рет қаралды 56 М.
Compilers, How They Work, And Writing Them From Scratch
23:53
Adam McDaniel
Рет қаралды 118 М.
Why Does Diffusion Work Better than Auto-Regression?
20:18
Algorithmic Simplicity
Рет қаралды 239 М.
Different Device Types/Modes in Bluetooth
6:46
Bina Bhatt
Рет қаралды 2,7 М.
Зачем ЭТО электрику? #секрет #прибор #энерголикбез
0:56
Александр Мальков
Рет қаралды 625 М.
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 656 М.
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 376 М.
СТРАШНЫЙ ВИРУС НА МАКБУК
0:39
Кринжовый чел
Рет қаралды 1,4 МЛН