Re: Register two 802.15.4 devices/interfaces in one driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Xue,

> Now I am working on a driver for MCR20A radio chip from NXP. This chip
> has a special feature: support two PAN networks. It means it can
> operate on two different or the same channels with different PAN IDs,
> short addresses and extended addresses. I suppose to add two 802.15.4
> interfaces for this feature. And I have two questions:
>
> 1. how to add 802.15.4 devices ? Call ieee802154_register_hw() twice
> with different struct ieee802154_hw ?
>
> 2. how to deal with tx and rx regarding two interfaces.
>
> Thanks.
>

Dual PAN is something like nice to have.
I suggest initialy to implement only PAN ID 0 support. It is easier and you would have fewer problems with the sequence manager. If the driver is stable and tested, then you can expand it and add support for dual PAN.

> It is appropriate for any driver design suggestions about this chip.

Since there are some incompletenesses in the reference manual, a good help could be [1], also there is kw2xrf driver in RIOT-OS [2] and mcr20a driver in zephyr-project (drivers/ieee802154/ieee802154_mcr20a*) [3].

[1] https://developer.mbed.org/teams/NXP/code/fsl_phy_mcr20a/
[2] https://github.com/RIOT-OS/RIOT/tree/master/drivers/kw2xrf
[3] https://gerrit.zephyrproject.org/r/gitweb?p=zephyr.git;a=tree;hb=HEAD
--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux