gpt4 book ai didi

linux - jssc windows 和 linux

转载 作者:太空宇宙 更新时间:2023-11-04 13:03:36 26 4
gpt4 key购买 nike

我正在使用 jssc 与设备通信。
在 Windows 和 Linux 中,该程序正常,但我遇到了病毒问题,我格式化了我的电脑,然后该程序不适用于 Windows,但在 Linux 中该程序运行良好。
我不知道为什么程序停止工作。
程序代码为:

    try {
command = new String(commandSend);
serialPort.writeBytes(command.getBytes());
logger.info("Sending to port " + a.getPort() + " " + command);
Thread.sleep(1000);//Wait 0.8 seconds

retorno = serialPort.readString();
} catch (Exception e) {
logger.error("Problems with send/receive command with the analyzer");
logger.error(e.getMessage());
logger.error(e.toString());
e.printStackTrace();
}

最佳答案

格式化PC后,请安装UART IC的驱动。

关于linux - jssc windows 和 linux,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33294453/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com