串口数据转换 [英] Serial port data translation

查看:133
本文介绍了串口数据转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我带了一个应用程序,它通过串口将数据发送到另一台设备。当我尝试使用串行监视器嗅探数据时。它显示了这样的东西

AA 41 0C 04 57 30 00 00 01 00 01 06 0F 1A

任何人都可以帮我这个吗? ?我应该在超级终端中写什么来获得相同的结果?

I've brought an application which sends data to another device through serial port. When I tried to sniff data using serial monitor. It showed something like this
AA 41 0C 04 57 30 00 00 01 00 01 06 0F 1A
Can any one help me with this?? What should I write in hyperterminal to get same result?

推荐答案

在超级终端?没有。它用作终端仿真 - 即键盘和显示器 - 它不具备发送特定十六进制值的功能,并且您无法从键盘生成所有这些代码。



如果必须使用HT,则使用十六进制编辑器创建小文件,并每次发送。但是你可能不得不编写代码来生成任何稍微不同的东西,因为最后的字节看起来是某种校验和。
In hyperterminal? Nothing. It's intended as a terminal emulation - ie, a keyboard and a display - it has not facility for sending specific hex values, and you can't generate all of those codes from the keyboard.

If you must use HT, then create small files using a hex editor and send those each time. But you will probably have to write code to generate anything even slightly different, as the final byte looks to be a checksum of some kind.


这篇关于串口数据转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆