[riot-notifications] [RIOT-OS/RIOT] drivers/at86rf215: Add driver for the AT86RF215 dual-band IEEE 802.15.4-2015 radio (#12128)

tinstructor notifications at github.com
Mon Sep 30 10:09:16 CEST 2019


I added some basic print statements to the _recv() function:
```c
static int _recv(netdev_t *netdev, void *buf, size_t len, void *info)
{
    ...

    /* just return length when buf == NULL */
    if (buf == NULL) {
        puts("Buffer points to NULL!");
        goto out;
    }

    /* not enough space in buf */
    if (pkt_len > (int) len) {
        pkt_len = -ENOBUFS;
        puts("Not enough space in buffer!");
        goto out;
    }

    /* copy payload */
    at86rf215_reg_read_bytes(dev, dev->BBC->RG_FBRXS, buf, pkt_len);
    puts("Payload copied!");
    printf("Length of payload: %d Bytes\n", pkt_len);

    ...

out:

    ...

    return pkt_len;
}
```

Then I flashed the nodes with `BOARD=openmote-b make GNRC_NETIF_NUMOF=2 -j flash PORT_BSL=/dev/ttyUSB<number>
` and pinged once again:
```bash
ping6 fe80::2068:3123:94f1:9637%7
2019-09-30 09:59:45,841 - INFO # ping6 fe80::2068:3123:94f1:9637%7
2019-09-30 09:59:48,848 - INFO # 
2019-09-30 09:59:48,848 - INFO # --- fe80::2068:3123:94f1:9637 PING statistics ---
2019-09-30 09:59:48,849 - INFO # 3 packets transmitted, 0 packets received, 100% packet loss
```

At the receiver this looked like this:
```bash
2019-09-30 09:59:45,845 - INFO # Buffer points to NULL!
2019-09-30 09:59:46,853 - INFO # Buffer points to NULL!
2019-09-30 09:59:47,845 - INFO # Buffer points to NULL!
```

Then I did the same but with a single interface (`BOARD=openmote-b make GNRC_NETIF_NUMOF=1 -j flash PORT_BSL=/dev/ttyUSB3
`) and got the following output again:
```bash
ping6 fe80::2068:3123:94f1:9637%7
2019-09-30 10:06:46,522 - INFO # ping6 fe80::2068:3123:94f1:9637%7
2019-09-30 10:06:49,530 - INFO # 
2019-09-30 10:06:49,534 - INFO # --- fe80::2068:3123:94f1:9637 PING statistics ---
2019-09-30 10:06:49,538 - INFO # 3 packets transmitted, 0 packets received, 100% packet loss
```

At the receiver:
```bash
2019-09-30 10:06:46,533 - INFO # Buffer points to NULL!
2019-09-30 10:06:47,526 - INFO # Buffer points to NULL!
2019-09-30 10:06:48,535 - INFO # Buffer points to NULL!
```

-- 
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/12128#issuecomment-536452142
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190930/7ea25d03/attachment.htm>


More information about the notifications mailing list