# gtkterm 向 iRobot Create 发命令无效

> 原文链接：https://robotics.hellobike.com/pitfalls/2016-01-04-robotics-se-8731
> 频道：pitfalls | 更新日期：2016-01-04 | 标签：auto, stackexchange, irobot-create, roomba, linux
> 核心摘要：gtkterm 输入会发送 ASCII 而非二进制，应改用编程语言发送 Open Interface 数据包。

# gtkterm 向 iRobot Create 发命令无效

::: v-pre
> 本文由 AI 根据公开内容整理，可能有误，请以原文为准：[Sending commands from Ubuntu](https://robotics.stackexchange.com/questions/8731/sending-commands-from-ubuntu)（Robotics Stack Exchange #8731）

**状态**：已解决

## 问题

在 Ubuntu 上用 `gtkterm` 以 `57600` 波特率向 iRobot Create Open Interface 发命令，按播放按钮后只会原地转圈；尝试发送原始数据和十六进制数据都无效。

## 环境

iRobot Create model 4400；Ubuntu；`gtkterm`；`57600` baud。

## 解决办法

1. 不要直接在 `gtkterm` 中键入命令，因为输入 `128` 实际发送的是 ASCII 字节 `[49 50 56]`。
2. 按 Roomba/Open Interface 需要的二进制格式发送数据。
3. 使用 `C`、`C#`、`Python` 等编程语言构造并发送数据包。

原问题作者：Samuel Fraga Mateos；采纳答案作者：Ben。原内容依 CC BY-SA 4.0 授权，本页摘要同样依 CC BY-SA 4.0 授权。
:::

## 原始参考来源 (Sources)

- [Robotics Stack Exchange #8731：Sending commands from Ubuntu](https://robotics.stackexchange.com/questions/8731/sending-commands-from-ubuntu)