[riot-notifications] [RIOT-OS/RIOT] drivers/nrf24l01p: Netdev driver for nrf24l01p (#13743)

benpicco notifications at github.com
Mon May 4 19:35:13 CEST 2020


> hence senders must include source L2 address for IPHC,
> hence the ShockBurst protocol requires a proprietary change
> (which was done by the previous PR)

I guess I liked the previous PR more, but I suppose this can be added with subsequent PRs.

> Have you tried to enable debug, if you want more output?

I enabled it for `nrf24l01p_ng_netdev.c`
```
2020-05-04 19:33:56,525 # CONFIG         [MASK_RX_DR 0 MASK_TX_DS 0 MASK_MAX_RT 0 EN_CRC 1 CRCO 1 PWR_UP 1 PRIM_RX 0]
2020-05-04 19:33:56,532 # EN_AA          [ENAA_P5 0 ENAA_P4 0 ENAA_P3 0 ENAA_P2 0 ENAA_P1 1 ENAA_P0 1]
2020-05-04 19:33:56,538 # EN_RXADDR      [ERX_P5 0 ERX_P4 0 ERX_P3 0 ERX_P2 0 ERX_P1 1 ERX_P0 1]
2020-05-04 19:33:56,540 # SETUP_AW       [AW 3]
2020-05-04 19:33:56,543 # SETUP_RETR     [ARD 10 ARC 5]
2020-05-04 19:33:56,545 # RF_CH          [RF_CH 4]
2020-05-04 19:33:56,551 # RF_SETUP       [CONT_WAVE 0 RF_DR_LOW 0 PLL_LOCK 0 RF_DR_HIGH 1 RF_PWR 3]
2020-05-04 19:33:56,557 # STATUS         [RX_DR 0 TX_DS 0 MAX_RT 0 RX_P_NO 7 TX_FULL 0]
2020-05-04 19:33:56,560 # OBSERVE_TX     [PLOS_CNT 0 ARC_CNT 0]
2020-05-04 19:33:56,562 # RPD            [RPD 0]
2020-05-04 19:33:56,566 # RX_ADDR_P0     [RX_ADDR_P0 a4:df:dd:73:f5]
2020-05-04 19:33:56,570 # RX_ADDR_P1     [RX_ADDR_P1 ff:ff:ff:ff:ff]
2020-05-04 19:33:56,572 # RX_ADDR_P2     [RX_ADDR_P2 c3]
2020-05-04 19:33:56,575 # RX_ADDR_P3     [RX_ADDR_P3 c4]
2020-05-04 19:33:56,578 # RX_ADDR_P4     [RX_ADDR_P4 c5]
2020-05-04 19:33:56,581 # RX_ADDR_P5     [RX_ADDR_P5 c6]
2020-05-04 19:33:56,584 # TX_ADDR        [TX_ADDR e7:e7:e7:e7:e7]
2020-05-04 19:33:56,587 # RX_PW_P0       [RX_PW_P0 0]
2020-05-04 19:33:56,589 # RX_PW_P1       [RX_PW_P1 0]
2020-05-04 19:33:56,592 # RX_PW_P2       [RX_PW_P2 0]
2020-05-04 19:33:56,594 # RX_PW_P3       [RX_PW_P3 0]
2020-05-04 19:33:56,597 # RX_PW_P4       [RX_PW_P4 0]
2020-05-04 19:33:56,599 # RX_PW_P5       [RX_PW_P5 0]
2020-05-04 19:33:56,605 # FIFO_STATUS    [TX_REUSE 0 TX_FULL 0 TX_EMPTY 1 RX_FULL 0 RX_EMPTY 1]
2020-05-04 19:33:56,611 # DYNDP          [DPL_P5 0 DPL_P4 0 DPL_P3 0 DPL_P2 0 DPL_P1 0 DPL_P0 0]
2020-05-04 19:33:56,616 # FEATURES       [EN_DPL 0 EN_ACK_PAY 0 DYN_ACK 0]
2020-05-04 19:33:56,619 # device:                 0x20000b9c
2020-05-04 19:33:56,621 # address length:         5
2020-05-04 19:33:56,622 # device params:
2020-05-04 19:33:56,624 # 	Channel:              4
2020-05-04 19:33:56,627 # 	CRC length:           2 bytes
2020-05-04 19:33:56,630 # 	Data rate:            2000 kbps
2020-05-04 19:33:56,632 # 	Max. retransmissions: 5
2020-05-04 19:33:56,635 # 	Retransmission delay: 2750 us
2020-05-04 19:33:56,637 # 	Tx power:             0 dbm
2020-05-04 19:33:56,641 # 	Rx address p0:        a4:df:dd:73:f5
2020-05-04 19:33:56,644 # 	RX address p1:        ff:ff:ff:ff:ff
2020-05-04 19:33:56,646 # 	RX address p2:         0
2020-05-04 19:33:56,649 # 	RX address p3:         0
2020-05-04 19:33:56,651 # 	RX address p4:         0
2020-05-04 19:33:56,653 # 	RX address p5:         0
2020-05-04 19:33:56,656 # State:                  STANDBY_1
2020-05-04 19:33:56,660 #    [nrf24l01p_ng] Unsupported netdev option 28
2020-05-04 19:33:56,662 # orted netdev option 28
2020-05-04 19:33:56,663 # K 0]
2020-05-04 19:33:56,665 #  0 DPL_P1 0 DPL_P0 0]
2020-05-04 19:33:56,665 # 3]
2020-05-04 19:33:56,665 # 1]
2020-05-04 19:33:56,668 # P 1 PRIM_RX 0]Welcome to RIOT!
txtsnd 4 7C:26:67:15:36 test
2020-05-04 19:34:02,846 #  txtsnd 4 7C:26:67:15:36 test
2020-05-04 19:34:02,846 # 
2020-05-04 19:34:02,854 # CONFIG         [MASK_RX_DR 0 MASK_TX_DS 0 MASK_MAX_RT 0 EN_CRC 1 CRCO 1 PWR_UP 1 PRIM_RX 0]
2020-05-04 19:34:02,861 # EN_AA          [ENAA_P5 0 ENAA_P4 0 ENAA_P3 0 ENAA_P2 0 ENAA_P1 1 ENAA_P0 1]
2020-05-04 19:34:02,867 # EN_RXADDR      [ERX_P5 0 ERX_P4 0 ERX_P3 0 ERX_P2 0 ERX_P1 1 ERX_P0 1]
2020-05-04 19:34:02,869 # SETUP_AW       [AW 3]
2020-05-04 19:34:02,872 # SETUP_RETR     [ARD 10 ARC 5]
2020-05-04 19:34:02,874 # RF_CH          [RF_CH 4]
2020-05-04 19:34:02,881 # RF_SETUP       [CONT_WAVE 0 RF_DR_LOW 0 PLL_LOCK 0 RF_DR_HIGH 1 RF_PWR 3]
2020-05-04 19:34:02,886 # STATUS         [RX_DR 0 TX_DS 0 MAX_RT 0 RX_P_NO 7 TX_FULL 0]
2020-05-04 19:34:02,889 # OBSERVE_TX     [PLOS_CNT 0 ARC_CNT 0]
2020-05-04 19:34:02,891 # RPD            [RPD 0]
2020-05-04 19:34:02,895 # RX_ADDR_P0     [RX_ADDR_P0 7c:26:67:15:36]
2020-05-04 19:34:02,899 # RX_ADDR_P1     [RX_ADDR_P1 ff:ff:ff:ff:ff]
2020-05-04 19:34:02,902 # RX_ADDR_P2     [RX_ADDR_P2 c3]
2020-05-04 19:34:02,905 # RX_ADDR_P3     [RX_ADDR_P3 c4]
2020-05-04 19:34:02,907 # RX_ADDR_P4     [RX_ADDR_P4 c5]
2020-05-04 19:34:02,910 # RX_ADDR_P5     [RX_ADDR_P5 c6]
2020-05-04 19:34:02,913 # TX_ADDR        [TX_ADDR 7c:26:67:15:36]
2020-05-04 19:34:02,916 # RX_PW_P0       [RX_PW_P0 0]
2020-05-04 19:34:02,918 # RX_PW_P1       [RX_PW_P1 0]
2020-05-04 19:34:02,921 # RX_PW_P2       [RX_PW_P2 0]
2020-05-04 19:34:02,923 # RX_PW_P3       [RX_PW_P3 0]
2020-05-04 19:34:02,926 # RX_PW_P4       [RX_PW_P4 0]
2020-05-04 19:34:02,928 # RX_PW_P5       [RX_PW_P5 0]
2020-05-04 19:34:02,934 # FIFO_STATUS    [TX_REUSE 0 TX_FULL 0 TX_EMPTY 0 RX_FULL 0 RX_EMPTY 1]
2020-05-04 19:34:02,941 # DYNDP          [DPL_P5 0 DPL_P4 0 DPL_P3 0 DPL_P2 0 DPL_P1 0 DPL_P0 0]
2020-05-04 19:34:02,945 # FEATURES       [EN_DPL 0 EN_ACK_PAY 0 DYN_ACK 0]
2020-05-04 19:34:02,948 # device:                 0x20000b9c
2020-05-04 19:34:02,950 # address length:         5
2020-05-04 19:34:02,952 # device params:
2020-05-04 19:34:02,954 # 	Channel:              4
2020-05-04 19:34:02,956 # 	CRC length:           2 bytes
2020-05-04 19:34:02,959 # 	Data rate:            2000 kbps
2020-05-04 19:34:02,962 # 	Max. retransmissions: 5
2020-05-04 19:34:02,964 # 	Retransmission delay: 2750 us
2020-05-04 19:34:02,967 # 	Tx power:             0 dbm
2020-05-04 19:34:02,971 # 	Rx address p0:        a4:df:dd:73:f5
2020-05-04 19:34:02,973 # 	RX address p1:        ff:ff:ff:ff:ff
2020-05-04 19:34:02,976 # 	RX address p2:         0
2020-05-04 19:34:02,978 # 	RX address p3:         0
2020-05-04 19:34:02,980 # 	RX address p4:         0
2020-05-04 19:34:02,982 # 	RX address p5:         0
2020-05-04 19:34:02,985 # State:                  TX_MODE
> 2020-05-04 19:34:02,988 #  [nrf24l01p_ng] Sending 4 bytes
2020-05-04 19:34:03,002 # [nrf24l01p_ng] IRQ
```

I only changed the SPI/PIN config, e.g. for same54-xpro's `board.h`


```C
#define NRF24L01P_NG_PARAM_SPI      SPI_DEV(1)
#define NRF24L01P_NG_PARAM_SPI_CLK  SPI_CLK_1MHZ
#define NRF24L01P_NG_PARAM_CS       GPIO_PIN(PC, 14)
#define NRF24L01P_NG_PARAM_CE       GPIO_PIN(PC, 22)
#define NRF24L01P_NG_PARAM_IRQ      GPIO_PIN(PC, 23)
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/13743#issuecomment-623601469
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200504/6fa073d9/attachment.htm>


More information about the notifications mailing list