# Rtde rtde\_text\_message

**URL:** <https://forum.universal-robots.com/t/rtde-rtde-text-message/13024>\
**Category:** Robot Communication\
**Created:** [March 18, 2021, 7:29am UTC](https://forum.universal-robots.com/t/rtde-rtde-text-message/13024 "2021-03-18T07:29:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon60045888](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@anon60045888](https://forum.universal-robots.com/u/anon60045888)\
**Post date:** [March 18, 2021, 7:29am UTC](https://forum.universal-robots.com/t/rtde-rtde-text-message/13024/1 "2021-03-18T07:29:38Z")

</div>

有人使用过rtde这个报警协议吗？官网python示例没有看到对应的例子，不懂如何使用的，找了几天也没有发现相就在的文档，求帮助，正在尝试这 RTDE\_TEXT\_MESSAGE v2 版本的报警协议。

Has anyone ever used the rtde alarm protocol? The official website Python example did not see the corresponding example, did not know how to use, looked for a few days also did not find the corresponding document, for help, is trying this rtde\_ TEXT\_ Message V2 version of the alarm protocol.

---

<div class="post-metadata">

**Author:** ![tizh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/tizh/32/4176_2.png) [@tizh](https://forum.universal-robots.com/u/tizh)\
**Post date:** [July 20, 2022, 6:53am UTC](https://forum.universal-robots.com/t/rtde-rtde-text-message/13024/2 "2022-07-20T06:53:34Z")

</div>

Hi,

时间有点久了，还在关注吗？

这个数据包可以从上位机向机器人发送报警信息  
Python library function example”  
con.send\_message(“test”.encode(), source=“Python Client”.encode(), type=3)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/a/aa5e3ecfa4493fc3fadb9b41316d8fccc7aca15b.png)

同时，如果上位机给机器人发送了无法识别的数据包，机器人也会回复此message，告诉上位机所发送的数据包有误  
此处举例，发送一不支持的数据包类型”w”,  
0004 77 01  
机器人校验后回复：Parse Error: package type not supported or package invalid, package type: w data:
