3 years, 8 months ago.

mbed nanostack mac supports two phy layers

Hello,

I am working with an mbed project, which uses the nanostack mac implementation. I'd like to support two interfaces, let's say ethernet and RF. The nanostack mac is responsible to choose one of the phy layer to communicate with other nodes. The communication performances is evaluated following LQI index, and the phy choice is therefore updated at time. My question is how I can support this mechanism. As far as I understand, it seems be a good point to use the function. mac_api_t *ns_sw_mac_create(int8_t rf_driver_id, mac_description_storage_size_t *storage_sizes) to create MAC interfaces. But how to let the nanostack to select one of the phy layer?

Any hint is highly welcomed.

Thanks in advance

Haisheng

Be the first to answer this question.