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
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/
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
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
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 ;)
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?
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
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/
Hello, I need to develop a very small code that doesn't use the module conf_bt_peripheral, is it possible to create a bluetooth receiver without this configuration? it will overflow my memory. The final goal is just to receive a byte and turn a red or a green light.
Hello, you do not mention what SoC you are using, but we assume it is one with very little memory. If it is an nRF52811, nRF52810, or nRF52805, they are not suitable to be Bluetooth receivers, as the central stack takes up a lot of memory. You can alternatively look at the nRF5 SDK, where the stack itself is smaller since it doesn't run on an RTOS. You can find the technical documentation here: docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/index.html Bluetooth LE examples in the nRF5 SDK can be found here: docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/examples_ble.html Technical Documentation For more technical help, please reach out to our tech support team on DevZone: devzone.nordicsemi.com
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
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
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
@@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.
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???
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!
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().
@@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!
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/
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.
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/
@@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
@@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
@@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.
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...
We need more of these kind of tutorial videos to be able to work with nordic devices.
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
@@NordicSemi Very helpful, do you provide something similar but with BLE as its main topic?
@@bobby9568 Thanks! We'll continue to launch new courses with topics related to our technology offerings.
Thanks for this very explanatory tutorial. It would be great if you can explain how to handle multiple BLE connections as well.
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/
Exactly what I needed, thanks!
Glad to hear!
Hi Nordic, please can i program the nrf52 dk with an external jlink. Your tutorial was really insightful. My onboard jlink has some issues
Thank you, Exactly what i needed, how to add security for BLE connection ?
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
Very elaborate tutorial. Thank you for this. Is there a document online which describes everything in further detail?
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
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 ;)
Very helpful content
Glad to hear!
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?
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
where can I find the source code for this webinar?
The source code for the sample can be found: github.com/edvinand/custom_ncs_ble_service_sample/tree/main/remote_controller
I need to modify advertising configuration and initial value range as dynamic . So I can add range values.
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/
Hello, I need to develop a very small code that doesn't use the module conf_bt_peripheral, is it possible to create a bluetooth receiver without this configuration? it will overflow my memory. The final goal is just to receive a byte and turn a red or a green light.
Hello, you do not mention what SoC you are using, but we assume it is one with very little memory. If it is an nRF52811, nRF52810, or nRF52805, they are not suitable to be Bluetooth receivers, as the central stack takes up a lot of memory.
You can alternatively look at the nRF5 SDK, where the stack itself is smaller since it doesn't run on an RTOS. You can find the technical documentation here: docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/index.html
Bluetooth LE examples in the nRF5 SDK can be found here: docs.nordicsemi.com/bundle/sdk_nrf5_v17.1.0/page/examples_ble.html
Technical Documentation
For more technical help, please reach out to our tech support team on DevZone: devzone.nordicsemi.com
@@NordicSemi hello, I found out the problem that I was using the MCUboot, I stopped using it and the program works perfectly with the nrf52805
@@cacadebaka great to hear that you found out the problem.
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
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
can we try this example on nrf9160dk
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
is there a playlist in the channel?
Yes, we do have a playlist for nRF Connect SDK: th-cam.com/play/PLx_tBuQ_KSqHc0SDVlb7yi2-SHCipjPDM.html
@@NordicSemi how can I connect the sdk to the ble low energy tool?
+
@@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.
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???
Hi Harald, we would recommend you to contact our tech support team directly on DevZone at devzone.nordicsemi.com
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!
Hi Harald, please contact our tech support team directly on DevZone at devzone.nordicsemi.com. They will be able to help out! Thanks.
I think the declaration of the semaphore bt_init_ok is done wrong: the 1 should be a 0
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().
@ I agree, best to take it and release it in the bt_ready function. More clear that way.
@@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!
Is there source code for a Central device running on a PC. (preference would be C++ (or C#))
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/
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.
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/
@@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
@@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
@@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.
@@theordinarygift please connect with our tech support team on DevZone to get further help: devzone.nordicsemi.com/
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...
Do be able to give you the best help, please reach out to our tech support team on DevZone: devzone.nordicsemi.com/
i am also having the same problem. My card is nRF5340DK
@@cemalkaragoz4816 please reach out to our tech support team on DevZone, and they will help you: devzone.nordicsemi.com/