[英]USB - RS232 communication
Is it possible to send data from a USB port to a RS232 using java code? 是否可以使用java代码将数据从USB端口发送到RS232? The RS232 is a port on FPGA board and the computer(via USB) is used to send these data.
RS232是FPGA板上的一个端口,计算机(通过USB)用于发送这些数据。
You can send data to a serial port from Java using a library like PureJavacomm , or RXTX . 您可以使用PureJavacomm或RXTX等库从Java发送数据到串行端口。 The latter is a bit of the de facto standard for Java, but has some quircks, while the former is actively developed and seems to work on all current "major" platforms (personal experience).
后者是Java的事实上的标准,但有一些怪癖,而前者是积极开发的,似乎适用于所有当前的“主要”平台(个人经验)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.