IEEE802.15.4: Update RX statistics in network driver. Update README files.

This commit is contained in:
Gregory Nutt 2017-06-25 11:18:27 -06:00
parent 58e3558c55
commit ff08f799ca
3 changed files with 17 additions and 3 deletions

View File

@ -508,10 +508,16 @@ Configurations
other configurations (see text matrix below). other configurations (see text matrix below).
2017-06-23: Added test for TCP functionality. As of yet unverified. 2017-06-23: Added test for TCP functionality. As of yet unverified.
2017-06-24: There are significant problems with the 6LoWPAN TCP send 2017-06-24: There are significant problems with the 6LoWPAN TCP send
logic. A major redesign was done to better handle ACKs and logic. A major redesign was done to better handle ACKs and
retransmissions, and to work with TCP dynamic windowing. Current retransmissions, and to work with TCP dynamic windowing.
hangs because ACKs are not received.
2017-05-25: TCP w/HC06 currently sends on packet than hangs. That
one packet is 1220 bytes long (of 4096 byte total message length).
It is received by the server application correctly. The hang is
probably due to remaining ACK-related problems. One retransmission
is recorded in network stastics.
Test Matrix: Test Matrix:
The following configurations have been tested: The following configurations have been tested:

View File

@ -810,7 +810,7 @@ sixlowpan
This configuration includes apps/examples/nettest and apps/examples/udpblaster. This configuration includes apps/examples/nettest and apps/examples/udpblaster.
Neither are truly functional. The only intent of this configuration Neither are truly functional. The only intent of this configuration
is to verify that the 6LoWPAN stack correctly encodes IEEE802.15.4 is to verify that the 6LoWPAN stack correctly encodes IEEE802.15.4
packets on output to the loopback device and correct decodes the packets on output to the loopback device and correctly decodes the
returned packet. returned packet.
touchscreen touchscreen

View File

@ -431,6 +431,11 @@ static int macnet_rxframe(FAR struct mac802154_maccb_s *maccb,
return -EINVAL; return -EINVAL;
} }
/* Increment statistics */
NETDEV_RXPACKETS(&priv->md_dev.i_dev);
NETDEV_RXIPV6(&priv->md_dev.i_dev);
/* Remove the IOB containing the frame. */ /* Remove the IOB containing the frame. */
ind->frame = NULL; ind->frame = NULL;
@ -1145,8 +1150,11 @@ static int macnet_req_data(FAR struct ieee802154_driver_s *netdev,
iob_free(iob); iob_free(iob);
} }
NETDEV_TXERRORS(&priv->md_dev.i_dev);
return ret; return ret;
} }
NETDEV_TXDONE(&priv->md_dev.i_dev);
} }
return OK; return OK;