[riot-devel] Disable 15.4 Acknowledgements

Peter Kietzmann peter.kietzmann at haw-hamburg.de
Tue Aug 9 16:50:26 CEST 2016


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, &opt, sizeof(opt));
> gnrc_netapi_set(ifs[0], NETOPT_ACK_REQ, 0, &opt, 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 at riot-os.org
>> https://lists.riot-os.org/mailman/listinfo/devel
> _______________________________________________
> devel mailing list
> devel at 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


More information about the devel mailing list