Arduino MEGA 2560 and Due. Both the MEGA 2560 and Due have 4 serial ports in total. One that connects through a USB port chip to the USB device port on the board and three extra serial ports that connect to pins on one of the pin headers of the board.
This Wiki is intended to be by and for RXTX users and developers. There is already a lot of information provided, but feel free to add your own content. Note that you will need to create an account before editing pages, as part of an effort to battle spambots. If after checking through the Wiki you don't find an answer to your question, then you can ask your question on the. Posting questions in the talk pages is not the right place to ask your questions. There is also the, which is still around, though most of the information has been migrated to the Wiki. Send mail to if you spot spambot activity.
![Usb Usb](http://www.embarcados.com.br/wp-content/uploads/2014/02/Layout-projeto.jpg)
I'm using for serial I/O handling in Java with an FTDI2232H that provides a USB comm port. It works great, with one exception: if I unplug the USB cable, so that the COM port disappears at runtime, it spews exceptions left and right: java.io.IOException: No error in nativeavailable at gnu.io.RXTXPort.nativeavailable(Native Method) at gnu.io.RXTXPort$SerialInputStream.read(RXTXPort.java:1427) at gnu.io.RXTXPort$SerialInputStream.read(RXTXPort.java:1339) and when I re-plug the cable in again, it does not recover. Is there any way to get rxtx to work properly with USB comm port connection/disconnection? (I've tried to post to the rxtx mailing list but for some strange reason I cannot send messages even though I am subscribed to the list. I've emailed the list admin and have gotten no response.) If not, is there another serial I/O framework that does?