From: Olivier Matz Date: Thu, 17 Jul 2014 17:56:05 +0000 (+0200) Subject: update notes X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cfc3d74959588a266054aab66e6871962ffe1787;p=protos%2Fxbee-avr.git update notes --- diff --git a/notes.txt b/notes.txt index 5c33678..882dbc3 100644 --- a/notes.txt +++ b/notes.txt @@ -471,3 +471,33 @@ mainboard > rc_proto_hello wing 25 1000 0123456789 mainboard > rc_proto_hello wing 25 1000 01234567890123456789 898/1000 898/1000 + + +Latency +=============== + +the ECHO command contains a timestamp, allowing latency measurement. +the structure is a but larger than a HELLO message. + +mainboard > rc_proto_stats reset +mainboard > rc_proto_echo wing 50 50 x +mainboard > rc_proto_stats show + echo_ans_latency_ms: 80 + +mainboard > rc_proto_stats reset +mainboard > rc_proto_echo wing 50 50 0123456789 +mainboard > rc_proto_stats show + echo_ans_latency_ms: 95 + +mainboard > rc_proto_stats reset +mainboard > rc_proto_echo wing 50 50 01234567890123456789 +mainboard > rc_proto_stats show + echo_ans_latency_ms: 125 + +The latency is probably small enough for our RC application, but it is +not as small as expected. + +serial from uc to xbee at 57600 = ~3ms for 20 bytes +radio rate is 24000: ~6.66ms for 20 bytes + +the progression of latency is not linear.