Search code examples
serial-portrxtxserial-communication

how to test serial port communication in windows with rxtx?


I am using RXTX with Java to connect to serial port. But now i have to test whether the communication is working properly or not? How to do this. Do i need modem or can we test any way in my local with out modem.

this is the program i want to test http://rxtx.qbang.org/wiki/index.php/Two_way_communcation_with_the_serial_port


Solution

  • On Windows you can use a 'null modem emulator' called com0com. This registers 2 dummy com ports onto the OS, which will communicate between each other.

    So, you'd need to connect to it 'twice', one for each end of the serial connection. com0com also has variants called com2tcp & hub4com, if that's more appropriate for you.

    HTH