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

benpicco notifications at github.com
Thu May 14 10:40:48 CEST 2020


@benpicco commented on this pull request.



> +    luid_base(dev->urxaddr.rxaddrpx.rx_p0, aw);
+    do {
+        /* "The LSByte must be unique for all six pipes" [datasheet p.38] */
+        luid_get(&dev->urxaddr.rxaddrpx.rx_p0[aw - 1], 1);
+    } while (dev->urxaddr.rxaddrpx.rx_p0[aw - 1] == bc[aw - 1]);

> I think you bought the predecessor module (nrf24l01), which does only support static payload lengths of 32 byte and does not send ACK´s.

> Maybe try to send exactly 32 bytes with `txtsnd`, then you could maybe see something on the other end. But I include the source address and the length now (6 bytes), so there are only 26 bytes left.

Indeed!

```
2020-05-14 10:38:34,862 # txtsnd 4 A4:DF:DD:73:F5 012345678901234567892345
> 2020-05-14 10:38:34,863 #  [nrf24l01p_ng] Sending 31 bytes
```

and on the other end

```
2020-05-14 10:38:34,881 # [nrf24l01p_ng] Return exact frame length
2020-05-14 10:38:34,884 # [nrf24l01p_ng] Handle received frame
2020-05-14 10:38:34,885 # Rx frame
2020-05-14 10:38:34,901 # 0xA4 0xDF 0xDD 0x73 0xF5 0x63 0x05 0x7C 0x26 0x67 0x15 0x36 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x31 0x32 0x33 0x34 0x35 
2020-05-14 10:38:34,905 # [nrf24l01p_ng] Received frame length: 37
2020-05-14 10:38:34,910 # [nrf24l01p_ng] _adpt_recv: Invalid source address length
```


-- 
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#discussion_r424967386
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200514/bc58b2ff/attachment-0001.htm>


More information about the notifications mailing list