Re: [riot-devel] Disable 15.4 Acknowledgements
Hi, NETOPT_ACK_REQ is currently not handled by the at86rf2xx driver but IIRC NETOPT_AUTOACK covers both for that device (didn't check that). Best Peter Am 09.08.2016 um 16:44 schrieb Simon Brummer: Hi Oleg, netopt_enable_t opt = NETOPT_DISABLE; gnrc_netif_get(ifs); gnrc_netapi_set(ifs[0], NETOPT_AUTOACK, 0, , sizeof(opt)); gnrc_netapi_set(ifs[0], NETOPT_ACK_REQ, 0, , sizeof(opt)); Did the trick. So there is a way to disable acknowledgements. Cheers, Simon Am Dienstag, den 09.08.2016, 16:40 +0200 schrieb Oleg Hahm: Hi Simon! On Tue, Aug 09, 2016 at 02:33:56PM +0200, simon wrote: Currently I am testing my TCP implementation between two samr21 Boards and a Raspberry Pi as sniffing Probe in between. My measured network dump contains a few unexpected retransmissions and i am unable to distinguish between retransmissions caused by 15.4 and retransmissions caused by TCP. Is there a way to disable the 15.4 acknowledgement and retransmission mechanism? IIRC auto acknowledgement can currently not be disabled with the at86rf2xx driver, but you can set the retransmissions to zero. You can do this either using the shell: ifconfig 7 set retrans 0 or directly via netapi: gnrc_netapi_set(CCNLRIOT_NETIF, NETOPT_CSMA_RETRIES, 0, 0, sizeof(uint8_t)); Cheers, Oleg ___ devel mailing list devel@riot-os.org https://lists.riot-os.org/mailman/listinfo/devel ___ devel mailing list devel@riot-os.org https://lists.riot-os.org/mailman/listinfo/devel -- Peter Kietzmann Hamburg University of Applied Sciences Dept. Informatik, Internet Technologies Group Berliner Tor 7, 20099 Hamburg, Germany Fon: +49-40-42875-8426 Web: http://www.haw-hamburg.de/inet ___ devel mailing list devel@riot-os.org https://lists.riot-os.org/mailman/listinfo/devel
Re: [riot-devel] Disable 15.4 Acknowledgements
Hi Simon! On Tue, Aug 09, 2016 at 04:44:40PM +0200, simon wrote: > netopt_enable_t opt = NETOPT_DISABLE; > gnrc_netif_get(ifs); > gnrc_netapi_set(ifs[0], NETOPT_AUTOACK, 0, , sizeof(opt)); > gnrc_netapi_set(ifs[0], NETOPT_ACK_REQ, 0, , sizeof(opt)); > > > Did the trick. So there is a way to disable acknowledgements. Have you checked if this actually works (i.e. no more ACKs are sent)? If yes, cool and sorry for my wrong statement. Cheers, Oleg -- gur orfg guvat nobhg EBG13 wbxrf vf, rirelbar unf gb qvt hc gurve 20 lrne byq pbairegref signature.asc Description: PGP signature ___ devel mailing list devel@riot-os.org https://lists.riot-os.org/mailman/listinfo/devel
Re: [riot-devel] Disable 15.4 Acknowledgements
Hi Simon! On Tue, Aug 09, 2016 at 02:33:56PM +0200, simon wrote: > Currently I am testing my TCP implementation between two samr21 Boards > and a Raspberry Pi as sniffing Probe in between. > > My measured network dump contains a few unexpected retransmissions and > i am unable to distinguish between retransmissions caused by 15.4 and > retransmissions caused by TCP. Is there a way to disable the 15.4 > acknowledgement and retransmission mechanism? IIRC auto acknowledgement can currently not be disabled with the at86rf2xx driver, but you can set the retransmissions to zero. You can do this either using the shell: ifconfig 7 set retrans 0 or directly via netapi: gnrc_netapi_set(CCNLRIOT_NETIF, NETOPT_CSMA_RETRIES, 0, 0, sizeof(uint8_t)); Cheers, Oleg -- Chuck Norris doesn't do TCP handshake - he does TCP roundhouse-kick to initiate the connection. signature.asc Description: PGP signature ___ devel mailing list devel@riot-os.org https://lists.riot-os.org/mailman/listinfo/devel