是否有终端模拟器可以让我通过串行端口发送原始字节?
我使用的是 Mac OS X 10.6,并且一直使用 screen 命令通过串行端口发送 ASCII 数据。然而,并非我想要发送的所有数据都是纯 ASCII,并且我希望能够通过串行端口发送原始字节。
这可能吗?有谁知道有什么程序可以做到这一点?
I'm on Mac OS X 10.6, and I've been using the screen command to send ASCII data over a serial port. However, not all the data I would like to send is pure ASCII, and I would like to be able to send raw bytes over the serial port.
Is this possible? Does anyone know of any programs that can do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
最好的选择是使用 CoolTerm。它使用起来很简单,并且有一个选项可以让您仅发送数据字节(而不是 ASCII 字符)。
当我处理串行接口时,我一直使用这个选项来用我的计算机模拟微控制器。
安装 CoolTerm 后,进入:连接 -> “发送字符串...”它将打开一个窗口,选择 HEX(而不是 ASCII)。例如,如果您需要发送 0xAA,只需在窗口中写入 AA 并按发送(建立串行连接后)。
希望有帮助。
The best option is to use CoolTerm. It is simple to use and there is an option that let you send just byte(s) of data (instead of ASCII characters).
I use this option all the time to emulate a micro-controller with my computer when I deal with a serial interface.
When CoolTerm is installed go under: Connection-> "Send String..." It will open a window, choose HEX (instead of ASCII). If you need to send 0xAA for example, just write AA in the window and press send (after making the serial connection).
Hope that helps.
如果你想从 shellscript 发送数据,请尝试:
If you want to send the data from a shellscript try:
MuTerm2 是跨平台的 (Java/PureJavaComm),大概可以在 MacOS 上运行(未经测试): https://github.com /edartuz/mutterm2
MuTerm2 is cross-platform (Java/PureJavaComm) and presumably works on MacOS (not tested): https://github.com/edartuz/muterm2