The nrf52 port in NuttX has support for BLE using a closed-source Softdevice controller from Nordic ( https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/softdevice_controller/README.html ). This is a certified BLE stack so there should be no problems with it. It worked with NuttX BLE Host and NimBLE BLE stack.
Regarding low energy - there is some PM logic, but I personally haven't had a chance to test it. One day I would like to measure the power consumption of Nordic chips with NuttX. If something in the nrf PM logic doesn't work, it should be easy to fix it, Nordic peripherals are usually simple (until you have to work around bugs from errata). > Zigbee would also be possible I guess, but IIRC it's not as energy > efficient as BLE? For now there is no IEEE802154 support for Nordic chips in NuttX. I'm working on this in my spare time, but it'll take some time to make it useful. > I can get a nrf52840 dongle soon for testing. I will probably spin my > own board with a ble, temperature sensor, and battery. Working with Nordic dongle sucks. You have to connect the external JLink to work with it. The USB peripheral on Nordic chips is a nightmare and the current support in NuttX has a bug that I haven't had a chance to fix yet - so another argument to avoid dongle for now. For development, I would recommend nrf52840-dk but it costs much more. pt., 2 lut 2024 o 11:27 Sebastien Lorquet <sebast...@lorquet.fr> napisaĆ(a): > Hello, > > Just a noob question: does NuttX support developing a BLE peripheral on > a NRF component, and if so, does it support low power modes so the > peripheral could run for years on a battery? I've seen the nrf52 is a > supported target. > > I'm just looking to see if I can replace my home network sensor (which > is based on usb powered ESP32 running nodemcu, connected via wifi/mqtt) > by these BLE thingies. I've done some test with a pi pico and > micropython, it works awesomely well, but I wonder how to do the same > while saving as much power as possible, as should be with BLE. > > Zigbee would also be possible I guess, but IIRC it's not as energy > efficient as BLE? > > I can get a nrf52840 dongle soon for testing. I will probably spin my > own board with a ble, temperature sensor, and battery. > > Thanks, > > Sebastien > >