简体   繁体   English

串口插入/拔出检测jssc库

[英]Serial Port insertion/removal detection jssc library

How to detect removal or insertion of serial port during normal operation? 在正常运行期间如何检测串行端口的卸下或插入? I am using jssc library in my Java Swing application. 我在Java Swing应用程序中使用jssc库。

I know about the exception part but it is not working according to the condition. 我知道异常部分,但它无法根据条件运行。

I've already mentioned this in the comments, but I'll add an answer for anyone else who might stumble across this question in the future. 我已经在评论中提到了这一点,但我会为将来可能偶然遇到此问题的其他任何人添加一个答案。

According to the accepted answer for 'Can Java JSSC library detect a lost connection?' 根据公认的答案: “ Java JSSC库可以检测到丢失的连接吗?”

The jssc does not have hot plug or device removal like mechanism jssc没有热插拔或设备移除机制

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

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