开发者

Java and USB-to-COM

I want to develop a Java application to communicate with the device based on Xilinx Spartan 3E Starter Kit. The board is connected to my PC with USB-to-COM cable (COM is on the board).

What I need is to sen开发者_运维百科d some sequences of bytes to the device and than receive the response from it. It is the same way the serial terminals (hyperterminal, minicom, etc) do.

I'm kinda new to Java, so what classes do i need to implement this?


I'm not exactly sure what you mean by "USB-to-COM". Do you mean that the USB connection is accessible as an RS232 serial port on the PC (aka COM port on windows) ?

If so, you should look at the RXTX library here: http://rxtx.qbang.org . It provides support for Java serial port communications on a number of platforms. If you are new to Java, you might not find serial port programming the easiest way to learn Java, but the examples included with RXTX should be clear otherwise.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜