# RTDE communication issue with python

**URL:** <https://forum.universal-robots.com/t/rtde-communication-issue-with-python/26793>\
**Category:** Robot Communication\
**Created:** [February 14, 2023, 3:05pm UTC](https://forum.universal-robots.com/t/rtde-communication-issue-with-python/26793 "2023-02-14T15:05:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon70034179](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@anon70034179](https://forum.universal-robots.com/u/anon70034179)\
**Post date:** [February 14, 2023, 3:05pm UTC](https://forum.universal-robots.com/t/rtde-communication-issue-with-python/26793/1 "2023-02-14T15:05:11Z")

</div>

Hello!  
I’ve been using the UR10 with RTDE in python through the following [[library]](https://bitbucket.org/RopeRobotics/ur-interface/src/master/URBasic/).

Several tests in a notebook give good results, but when run in a script that must execute other functions that take longer it often happens that the RTDE communication fails. In particular I get errors like this:

```auto
rtde ERROR - Lost some RTDE at 277.505 - 704.0000000000077 milliseconds since last package

```

(with different times) and finally the connection breaks and the client writes thousands of lines like this:

```auto
rtde ERROR - Unknown RTDE command type: 1

```

It seems as if the TCP expects a constant answer from python and if it doesn’t receive it it goes into error.

Since it’s a random error it’s hard to come up with a mwe, but if someone wants to look into it I can try to reproduce it.

Cheers and thanks in advance!
