代码在RS232上有效,过一段时间后卡在RS485上

问题描述

与标题相同。使用此代码在点击时仅发送简单的颜色。

function clickColor(event)
{
    event = event || window.event; // handle IE issues
    var target = event.target || event.srcElement; // more IE issues
    var xmlhttp;
    var lineSelect = document.getElementById("lineSelector");
        xpw.serialTransmit({line: lineSelect.value,message: target.style.getPropertyValue('background-color')+"\r\n"});
        document.getElementById("textBox").style.color = target.style.getPropertyValue('background-color');
}

通过RS232连接设备(Lantronix EDGE)时,一切正常,但是在发送大约15条消息后使用RS485时,我在控制台中仅收到null。没有颜色。重置设备可以解决此问题,并再发送几条消息。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)