Java中的串行通信
我在使用串行端口时遇到了 Serialio 库的问题,它可以在 XP 上运行,但不能在我的计算机上的 Windows 7 上运行,但奇怪的是在朋友计算机上的 Windows 7 上运行。我收到消息,而不是错误,平台不受支持。有人有这方面的经验吗?
I have problem with Serialio library for using serial port, it works on XP but it doesn't work on Windows 7 on my computer, but what is strange works on Windows 7 on friend computer. I got message, not error, Platform not supported. Does anybody have any experience with this ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查串行 I/O 的设置?我不熟悉serialIO库,但我知道一些串行Win32 API。
我读了一些示例代码,如下所示:
在某些情况下,这会导致意外的问题。
检索到的变量并不全部被程序修改,那些未修改的部分可能会改变执行结果。
check settings of serial I/O? I am not familiar with serialIO library but I know some serial Win32 APIs.
I read some sample code like this:
In some situation, this would cause unexpected problem.
Retrieved variables are not all modified by your program and those un-modified part might change the result of execution.
只是想了解一下,您的计算机上同时安装了 XP 和 Win7(我假设是通过双启动?)
也许与打开 UAC 有关?也许你朋友的机器已经关闭了它,而它在你的机器上打开了。或者您可以尝试使用管理员权限运行您的应用程序。除此之外,您开始查看 Windows7 机器之间的补丁级别,并确保您的串行端口在 Windows7 中实际配置正确。
Just trying to understand, you have both XP and Win7 on your computer (via dual boot i assume?)
Perhaps related to UAC being turned on? Maybe your friends machines have that turned off, and its turned on on your machine. Or perhaps you can try running your app with administrator privileges. Other than that, you start looking at patch levels between with windows7 machines, as well as making sure your serial port is actually configured properly in windows7.