Skip to content

Portenta H7 TCP Latency Issue #13518

Jan 25, 2024 · 18 comments · 14 replies
Discussion options

You must be logged in to vote

Getting back on topic here, I can reproduce the original reported latency issue of around 500ms. It occurs on any MicroPython port that uses lwIP (which includes the Portenta H7).

The reason is because of this lwIP code in src/include/lwip/priv/tcp_priv.h:

#ifndef TCP_TMR_INTERVAL
#define TCP_TMR_INTERVAL       250  /* The TCP timer interval in milliseconds. */
#endif /* TCP_TMR_INTERVAL */

#ifndef TCP_FAST_INTERVAL
#define TCP_FAST_INTERVAL      TCP_TMR_INTERVAL /* the fine grained timeout in milliseconds */
#endif /* TCP_FAST_INTERVAL */

#ifndef TCP_SLOW_INTERVAL
#define TCP_SLOW_INTERVAL      (2*TCP_TMR_INTERVAL)  /* the coarse grained timeout in milliseconds */
#endif /* TCP_SLOW_IN…

Replies: 18 comments 14 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@robert-hh
Comment options

@glenn20
Comment options

@IHOXOHI
Comment options

Comment options

You must be logged in to vote
2 replies
@IHOXOHI
Comment options

@robert-hh
Comment options

Comment options

You must be logged in to vote
2 replies
@robert-hh
Comment options

@iabdalkader
Comment options

Comment options

You must be logged in to vote
1 reply
@robert-hh
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@robert-hh
Comment options

Comment options

You must be logged in to vote
1 reply
@robert-hh
Comment options

Comment options

You must be logged in to vote
1 reply
@robert-hh
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@yannick-t
Comment options

@dpgeorge
Comment options

Answer selected by yannick-t
Comment options

You must be logged in to vote
1 reply
@Josverl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants