Most suitable network protocol for 100Hz data rates

Hello everyone!

I have a custom board featuring nRF5340 and nRF7002. In this board, I gather data from 10 sensors at around 100 Hz (for the whole set), and from 2 more sensors gathering data via BT also at around 100 Hz each. Each sensors create a structure of 40-45 Bytes.

My goal is to forward this data via WiFi in real time, and to achieve so I basically can rely on these networking samples https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/samples/net.html

I think the choice should fall between HTTP, MQTT and UDP. I think UDP is the most suitable one since by design allows a fast transmission of data; from what I understood MQTT transmit data as a string, so I guess there will be a string parser on the final application that access data; lastly, regarding HTTP, I think that POST calls to an HTTP server are too slow wrt to my desired data rate.

Do you have any hint or thoughts on this?

  • I would also add that I'm trying to play a bit with the samples provided, but I'm already stuck in using the UDP sample (NCS 2.6.0).

    I built for nrf7002dk_nrf5340_cpuapp_ns, and the only modification that I did is to add the following options to `prj.conf`

    CONFIG_WIFI_CREDENTIALS_STATIC=y
    CONFIG_WIFI_CREDENTIALS_STATIC_SSID="myssid"
    CONFIG_WIFI_CREDENTIALS_STATIC_PASSWORD="mypassword"
    CONFIG_WIFI_CREDENTIALS_STATIC_TYPE_SAE=y

    I have tried to connect to different APs but the result is always the same. From the console

    *** Booting nRF Connect SDK v3.5.99-ncs1 ***
    [00:00:00.417,388] <inf> udp_sample: UDP sample has started
    [00:00:00.417,419] <inf> udp_sample: Bringing network interface up and connecting to the network

    And nothing else

  • Hi Dario,

    Sorry for not getting back to you sooner. 

    Do you have any hint or thoughts on this?

    Anything works. 10 sensors every 100 Hz is not likely to cause much traffic and hence anything that suits your requirement can be used.

    Regards,

    Swathy

Related