L2 dummy layer example

Hi !

There :

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/networking/api/net_l2.html

I can see

"Currently, there are L2 layers for Ethernet, IEEE 802.15.4 Soft-MAC, Bluetooth IPSP, CANBUS, OpenThread, Wi-Fi, and a dummy layer example that can be used as a template for writing a new one."

Could you please point me to the "L2 dummy layer example " location? 

I would like to write my own radio network driver which is serialized and executed on the network core.

Regards,

Eugene

Parents Reply Children
  • Hiihtaja said:
    But why it so short ?

    It is just a dummy implementation, it doesn't really do anything. It is mostly used for testing, when the network stack actually runs on a different host.

    Hiihtaja said:

    Is this part for app core only ?

    Typical network driver should have some IPC messages to network core and some part on netcore side.

    Zephyr supports a lot of other MCUs than just the nRF5340, not all of them are multicore. Also, you don't actually have to use the network core for your network stack, if you don't use the radio.

    Hiihtaja said:
    What simplest sample is the best for implement own serialized L2 device driver ?

    The dummy driver shows you what you have to do to make the upper layers happy. How you talk to the lower layers is up to you to figure out.

    As for how to actually communicate between the two cores, nrf/samples/nrf_rpc/entropy_nrf53 should be a good start.

Related