Serial port OpenWRT通过串行端口发送Pelco D代码

Serial port OpenWRT通过串行端口发送Pelco D代码,serial-port,openwrt,pelco,Serial Port,Openwrt,Pelco,我有一个Linksys WRT54GL和一个被黑客攻击的串口。我可以通过网络正常使用它 echo "Test" > /dev/tts/1 我的Windows/Serial/Putty组合可以很好地获取数据 我用Windows机器检查我的Pelco设备,它工作正常 经过一些阅读和安装后,我通过stty将serialport设置更改为2400,并使用putty进行检查 用油灰还是可以的,但送的东西 echo "255,1,0,4,32,0,37," > /dev/tts/1 不起作

我有一个Linksys WRT54GL和一个被黑客攻击的串口。我可以通过网络正常使用它

echo "Test" > /dev/tts/1
我的Windows/Serial/Putty组合可以很好地获取数据

我用Windows机器检查我的Pelco设备,它工作正常

经过一些阅读和安装后,我通过stty将serialport设置更改为2400,并使用putty进行检查

用油灰还是可以的,但送的东西

echo "255,1,0,4,32,0,37," > /dev/tts/1 
不起作用。Pelco装置不能移动


有什么建议吗

解决方法很简单。纪录片中的例子:

假设您正在控制摄像机1(地址1)以高速向左平移,前6个字节的命令字符串将是:
FF 01 00 04 3F 00

linux中的命令:

echo -e -n "\xFF\x01\x00\x04\x3F\x00" > /dev/tts/1
手册页告诉我们:

-e enable interpretation of backslash escapes
-n do not output the trailing newline
它是有效的