我应该使用哪个库来与 Java ME 上的串行端口进行通信?
我有一些嵌入 Linux 的设备,需要对生产者线程进行编程...
考虑使用 JME 来实现,在这种情况下哪个库最适合访问串行端口?
I have some devices with Linux embedded and need to program a producer thread...
Thinking of doing it with JME, which library is the best to access serial port on this scenario?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 JME 应用程序中的 CommConnection 从串行端口读取数据/向串行端口写入数据。 http://java.sun.com/javame /reference/apis/jsr118/javax/microedition/io/CommConnection.html
例如
,在调用
Connector.open
之前,您应该检查哪些串行端口可用You can use CommConnection from a JME app to read/write data from/to a serial port. http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/io/CommConnection.html
For example
Before calling
Connector.open
you should check which serial ports are available with