通过串口发送HEX [英] send HEX over serial

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

问题描述

大家好,在这里完成noob。提前道歉,询问可能简单或复杂的事情..



所以我有一个LED标志,有一个IR遥控器发送命令。,即向上/ down / righ / left。



标志有一个串口,正如制造商所说,它接受上/左的十六进制命令。



我的问题是这个,什么,或者我将如何使用它来完成它?我的计算机通过串行电缆连接到标志但我似乎无法通过十六进制命令,或者不知道如何。



十六进制说,off是NO。 5,HEX 5,DEC 5



因为它听起来很愚蠢我通过连续发送555到标志但它没有做任何事情:(



关于程序和命令的任何帮助都会非常适合..

Hello all, complete noob here. apologies in advance for asking something that might be simple, or complex..

so I have an LED sign that has an IR remote to send commands., i.e, up/down/righ/left.

the sign has a serial port, and as the manufacturer said, it accepts hex commands for up/left so and so.

my question is this, what, or how would i use to accomplished that? I have my computer connected to the sign via serial cable but i cant seem to pass a hex command, or dont know how.

the hex for say, off is NO. 5, HEX 5, DEC 5

so as dumb as it sounds im sendt "555" to the sign via serial but it doesnt do anything :(

any help as to the program and commands would be so appriciated..

推荐答案

你需要:

- 信号文件

- 终端模拟器(可能)



在文档中,你需要找到:

- 通讯速度

- 数据格式:位数,停止,奇偶校验

- 修补代码



当您启动并运行通信时,您可以考虑编程。
You need:
- Signal documentation
- a terminal emulator (probably)

In documentation, you need to find:
- Communication speed
- Data format: number of bits, stop, parity
- Commends codes

When you have a communication up and running, you can think about programming.


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

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