简体   繁体   English

Java中的RS232通讯问题

[英]RS232 communication problem in Java

Can I found out in Java if cable is pluged in RS232 port on my comp? 如果电缆已插入计算机上的RS232端口,是否可以用Java查找? I work on some application, I have convertor from usb to rs232 on com6 port and I need info if there is cable pluged in or not. 我在某些应用程序上工作,我在com6端口上具有从USB到rs232的转换器,并且是否需要插入电缆需要信息。

Try to open the that the Port "COM6" at regular interval, but be careful to put it inside try-catch. 尝试定期打开“ COM6”端口,但要小心将其放入try-catch中。

Thanks:) 谢谢:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM