From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0001.obj From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0002.obj From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0003.obj From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0004.obj From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0005.obj From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0006.obj From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0007.obj From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0008.obj From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0009.obj From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0010.obj From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx.obj From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0001.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0002.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0003.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0004.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0005.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0006.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0008.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0002.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0009.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0003.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0004.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0001.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0005.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0001.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0002.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0006.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0002.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0003.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0007.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0003.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0004.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0008.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0004.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0005.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0009.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0005.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0010.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0010.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0006.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0011.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0011.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0007.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0012.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0012.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0008.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0013.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0013.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0009.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0014.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0014.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0010.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0015.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0015.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0011.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0016.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0016.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0012.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0017.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0017.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0013.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0018.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0018.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0014.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0019.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0019.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0015.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0020.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0020.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0016.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0021.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0021.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0017.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0022.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0022.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0018.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0023.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0023.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0019.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0024.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0024.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0020.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0025.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0025.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0021.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0026.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0026.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0022.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0027.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0027.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0023.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0028.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0028.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0024.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0029.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0029.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0025.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0030.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0030.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0026.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0031.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0031.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0027.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0032.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0032.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0028.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom@tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/SimpleReadRxTx-0033.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0033.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0029.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0034.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0030.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0001.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0035.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0031.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0002.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0036.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0032.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0003.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0037.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0033.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0004.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0038.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0034.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0005.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0039.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0035.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0006.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0040.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0036.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0007.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0041.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0037.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0008.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0042.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0039.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0009.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0043.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0040.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0010.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0044.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0041.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0001.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0002.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0011.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0045.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0042.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0002.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0003.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0012.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0046.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0043.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0003.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0004.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0013.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0047.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0044.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0004.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0005.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0014.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0048.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0045.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0005.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0006.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0015.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0049.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0046.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0006.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0007.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0016.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0050.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0047.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0007.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0008.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0017.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0051.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0048.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0008.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0009.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0018.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0052.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0049.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0009.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0010.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0019.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0053.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0050.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0010.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0011.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0020.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0054.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0051.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0011.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0012.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0021.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0055.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0052.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0012.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0013.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0022.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0056.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0053.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0013.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0014.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0023.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0057.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0054.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0014.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0015.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0024.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0058.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0055.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0015.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0016.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0025.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0059.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0056.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0016.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0017.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0026.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0060.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0057.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0017.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0018.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0027.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0061.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0058.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0018.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0019.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0028.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0062.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0059.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0019.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0020.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0029.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0063.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0060.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0020.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0021.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0030.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0064.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0061.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0021.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0022.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0031.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0065.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0062.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0022.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0023.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0032.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0066.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0063.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0023.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0024.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0033.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0067.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0064.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0024.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0025.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0034.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0068.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0065.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0025.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0026.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0035.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0069.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0066.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0026.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0027.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0036.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0070.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0067.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0027.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0028.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0037.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0071.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0068.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0028.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0029.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0038.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0072.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0069.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0029.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0030.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0039.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0073.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0070.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0030.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0031.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0040.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0074.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0071.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0031.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0032.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0041.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0075.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0072.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0032.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0033.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0042.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0076.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0073.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0033.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0034.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0043.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0077.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0074.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0034.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0035.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0044.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0078.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0075.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0035.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0036.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0045.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0079.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0076.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0036.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0037.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0046.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0080.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0077.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0037.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0038.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0047.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0081.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0078.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0038.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0039.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0048.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0082.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0079.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0039.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0040.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0049.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0083.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0080.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0040.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0041.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0050.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0084.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0081.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0041.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0042.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0051.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0085.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0082.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0042.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0043.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0052.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0086.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0083.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0043.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0044.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0053.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0087.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0084.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0044.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0045.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0054.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0088.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0085.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0045.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0046.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0055.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0089.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0086.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0046.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0047.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0056.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0090.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0087.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0047.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0048.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0057.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0091.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0088.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0048.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0049.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0058.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0092.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0089.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0049.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0050.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0059.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0093.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0090.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0050.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0051.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0060.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0094.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0091.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0051.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0052.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0061.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0095.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0092.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0052.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0053.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0062.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0096.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0093.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0053.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0054.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0063.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0097.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0094.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0054.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0055.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0064.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0098.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0095.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0055.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0056.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0065.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0099.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0096.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0056.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0057.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0066.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0100.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0097.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0057.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0058.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0067.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0101.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0098.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0058.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0059.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0068.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0102.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0099.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0059.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0060.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0069.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0103.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0100.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0060.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0061.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0070.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0104.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0101.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0061.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0062.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0071.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0105.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0102.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0062.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0063.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0072.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0106.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0103.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0063.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0064.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0073.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0107.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0104.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0064.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0065.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0074.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0108.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0105.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0065.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0066.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0075.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0109.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0106.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0066.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0067.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0076.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0110.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0107.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0067.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0068.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0077.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0111.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0108.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0068.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0069.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0078.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0112.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0109.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0069.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0070.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0079.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0113.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0110.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0070.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0071.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0080.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0114.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0111.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0071.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0072.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0081.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0115.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0112.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0072.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0073.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0082.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0116.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0113.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0073.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0074.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0083.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0117.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0114.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0074.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0075.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0084.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0118.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0115.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0075.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0076.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0085.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0119.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0116.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0076.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0077.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0086.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0120.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0117.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0077.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0078.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0087.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0121.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0118.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0078.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0079.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0088.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0122.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0119.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0079.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0080.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0089.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0123.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0120.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0080.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0081.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0090.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0124.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0121.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0081.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0082.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0091.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0125.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0122.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0082.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0083.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0092.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0126.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0123.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0083.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0084.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0093.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0127.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0124.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0084.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0085.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0094.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0128.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0125.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0085.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0086.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0095.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0129.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0126.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0086.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0087.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0096.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0130.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0127.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0087.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0088.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0097.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0131.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0128.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0088.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0089.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0098.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0132.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0129.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0089.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0090.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0099.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0133.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0130.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0090.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0091.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0100.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0134.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0131.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0091.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0092.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0101.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0135.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0132.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0092.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0093.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0102.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0136.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0133.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0093.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0094.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0103.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0137.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0134.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0094.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0095.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0104.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0138.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0135.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0095.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0096.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0105.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0139.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0136.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0096.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0097.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0106.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0140.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0137.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0097.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0098.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0107.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0141.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0138.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0098.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0099.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0108.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0142.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0139.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0099.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0100.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0109.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0143.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0140.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0100.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0101.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0110.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0144.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0141.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0101.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0102.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0111.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0145.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0142.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0102.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0103.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0112.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0146.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0143.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0103.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0104.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0113.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0147.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0144.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0104.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0105.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0114.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0148.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0145.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0105.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0106.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0115.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0149.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0146.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0106.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0107.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0116.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0150.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0147.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0107.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0108.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0117.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0151.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0148.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0108.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0109.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0118.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0152.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0149.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0109.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0110.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0119.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0153.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0150.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0110.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0111.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0120.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0154.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0151.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0111.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0112.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0121.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0155.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0152.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0112.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0113.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0122.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0156.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0153.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0113.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0114.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0123.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0157.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0154.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0114.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0115.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0124.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0158.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0155.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0115.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0116.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0125.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0159.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0156.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0116.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0117.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0126.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0160.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0157.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0117.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0118.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0127.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0161.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0158.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0118.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0119.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0128.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0162.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0159.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0119.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0120.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0129.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0163.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0160.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0120.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0121.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0130.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0164.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0161.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0121.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0122.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0131.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0165.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0162.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0122.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0123.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0132.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0166.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0163.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0123.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0124.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0133.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0167.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0164.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0124.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0125.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0134.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0168.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0165.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0125.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0126.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0135.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0169.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0166.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0126.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0127.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0136.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0170.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0167.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0127.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0128.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0137.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0171.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0168.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0128.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0129.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0138.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0172.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0169.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0129.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0130.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0139.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0173.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0170.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0130.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0131.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0140.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0174.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0171.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0131.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0132.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0141.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0175.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0172.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0132.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0133.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0142.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0176.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0173.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0133.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0134.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0143.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0177.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0174.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0134.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0135.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0144.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0178.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0175.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0135.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0136.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0145.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0179.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0176.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0136.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0137.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0146.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0180.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0177.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0137.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0138.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0147.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0181.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0178.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0138.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0139.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0148.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0182.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0179.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0139.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0140.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0149.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0183.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0180.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0140.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0141.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0150.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0184.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0181.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0141.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0142.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0151.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0185.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0182.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0142.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0143.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0152.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0186.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0183.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0143.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0144.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0153.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0187.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0184.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0144.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0145.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0154.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0188.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0185.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0145.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0146.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0155.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0189.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0186.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0146.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0147.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0156.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0190.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0187.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0147.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0148.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0157.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0191.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0188.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0148.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0149.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0158.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0192.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0189.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0149.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0150.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0159.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0193.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0190.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0150.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0151.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0160.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0194.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0191.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0151.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0152.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0161.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0195.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0192.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0152.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0153.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0162.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0196.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0193.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0153.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0154.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0163.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0197.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0194.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0154.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0155.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0164.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0198.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0195.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0155.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0156.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0165.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0199.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0196.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0156.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0157.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0166.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0200.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0197.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0157.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0158.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0167.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0201.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0198.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0158.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0159.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0168.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0202.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0199.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0159.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0160.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0169.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0203.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0200.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0160.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0161.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0170.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0204.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0201.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0161.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0162.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0171.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0205.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0202.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0162.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0163.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0172.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0206.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0203.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0163.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0164.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0173.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0207.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0204.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0164.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0165.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0174.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0208.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From luigi.ranzato at giustizia.it Fri Jul 27 07:18:47 2007 From: luigi.ranzato at giustizia.it (Luigi Ranzato) Date: Fri, 27 Jul 2007 15:18:47 +0200 Subject: [Rxtx] Help request. Message-ID: <00f701c7d050$aa803b00$1948060a@NTUSER06> Sorry for my little english! Can anyone help me? I'm workin' on a Java code that listen for a BlueTooth serial port (GPS). When I try using MS HyperTerminal it workin' fine, but when i try with a Java code with gnu.io.*; imported, it does not work! MS Windows is able to read for example, COM6, but when i try with java enumerator, can't found the port. Can anyone help me? TY at all! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070727/b5f90669/attachment-0205.html From dhooker at e2eft.com Fri Jul 27 10:26:15 2007 From: dhooker at e2eft.com (David Hooker) Date: Fri, 27 Jul 2007 11:26:15 -0500 Subject: [Rxtx] Help: Rxtx not loading correctly Message-ID: <03f101c7d06a$db57e5b0$c200010a@Homer> Hi all- I looked through the archives and couldn't find an answer to this issue. Background: I have some devices which I communicate with over serial, and have been using javax.comm with varied success. When communicating with one device in particular, when I send a certain command to the device the javax.comm library causes the machine to slow to a crawl. So I'm trying to switch to RXTX. Now, however, I get the following messages when I run: Experimental: JNI_OnLoad called. java.lang.UnsatisfiedLinkError: nativeGetVersion thrown while loading gnu.io.RXTXCommDriver java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) at com.... I installed the RXTXcomm.jar file into my classpath, and the two .so files are in a directory which I added to LD_LIBRARY_PATH. Plus, I created a conf file for ld.so.conf to point to the path where my .so files are, *and* I ran ldconfig on the directory which did add the files to the ld.so.cache! So why is this failing? Also... what's this "Experimental" thing? Thanks in advance... -David- From tjarvi at qbang.org Sat Jul 28 12:00:57 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 12:00:57 -0600 (MDT) Subject: [Rxtx] Test Message-ID: The list is being put back together. -- Trent Jarvi tjarvi at qbang.org From dhooker at e2eft.com Sat Jul 28 15:03:51 2007 From: dhooker at e2eft.com (David Hooker) Date: Sat, 28 Jul 2007 16:03:51 -0500 Subject: [Rxtx] Test In-Reply-To: Message-ID: <041001c7d15a$cd8fe590$c200010a@Homer> Is there anyone on the list? I posted a question a couple of days ago... should I repost it? -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of Trent Jarvi Sent: Saturday, July 28, 2007 1:01 PM To: rxtx at qbang.org Subject: [Rxtx] Test The list is being put back together. -- Trent Jarvi tjarvi at qbang.org _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From tjarvi at qbang.org Sat Jul 28 15:50:41 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 15:50:41 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: Hi David, Please hold on reposting until I post to the list that it is back in shape. The server lost /var which had the membership info so I've been putting things back together. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From tjarvi at qbang.org Sat Jul 28 18:35:18 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Sat, 28 Jul 2007 18:35:18 -0600 (MDT) Subject: [Rxtx] Test In-Reply-To: <041001c7d15a$cd8fe590$c200010a@Homer> References: <041001c7d15a$cd8fe590$c200010a@Homer> Message-ID: I answered David off the list, I'll be putting about 400 people back on the rxtx mail-list this weekend. Please hold off on email until I send out a note. We had a fairly bad failure on a server at a bad time of the year. On Sat, 28 Jul 2007, David Hooker wrote: > Is there anyone on the list? I posted a question a couple of days ago... should > I repost it? > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org]On Behalf Of > Trent Jarvi > Sent: Saturday, July 28, 2007 1:01 PM > To: rxtx at qbang.org > Subject: [Rxtx] Test > > > > The list is being put back together. > > -- > Trent Jarvi > tjarvi at qbang.org > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > From joshua at freedoment.com Wed Jul 4 12:42:00 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 04 Jul 2007 18:42:00 -0000 Subject: [Rxtx] virtual serial port Message-ID: <1183556787.10682.6.camel@alvin> Hello! Okay, I am trying to write a cross-platform application that talks to a custom little micro-controller box. This box uses a virtual serial port, which happens to have nice support under linux. When you plug it in, it creates a serial port at /dev/ttyACM0 which I can connect to and talk to with a regular serial port terminal. I've also tried this in windows, and with the proper .inf file it uses usbser.sys and works fine, I can talk with it. I've had different unsuccessful behavior from this library on each platform so far. Under linux, it seems to be unable to see the port. when I try to do CommPortIdentifier.getPortIdentifier("/dev/ttyACM0") I get a NoSuchPortException and when I enumerate the ports, I get only one, /dev/ttyS0. Is this any reason I shouldn't be able to point this thing to my functioning virtual serial port? In windows, the port IS listed in the enumeration, but when I try to open it, I get a PortInUseException, however when I query to find out who the owner is, I get null. Any help is so greatly appreciated! Thank you! Joshua From af3556 at gmail.com Mon Jul 9 16:21:38 2007 From: af3556 at gmail.com (Ben Low) Date: Mon, 09 Jul 2007 22:21:38 -0000 Subject: [Rxtx] Linux: serial port enumeration suggestion Message-ID: <5f3c8a190707091521t489b296cu651db0ccbf5e43fc@mail.gmail.com> Hello, I'm running Arduino (http://arduino.cc/) on a Linux box (2.6 kernel). I'm told Arduino uses the rxtx library, so am forwarding my suggestion here: it would be good if serial port enumeration were based on device IDs rather than names, as names can be fairly arbitrary with udev-enabled systems (http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html). I have a number of USB serial devices I use local udev rules to manage the device naming. Without udev, I get a number of ttyUSB* devices, and I can't tell which is which (and worse they are renumbered whenever I plug/unplug them). e.g. part of my /etc/udev/rules.d/10-local.rules # BitScope DSO #KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", SYMLINK+="dso" KERNEL=="ttyUSB*", SYSFS{serial}=="BSCVFO61", NAME="dso" # Arduino(s) (only thing to go on is serial nos.) KERNEL=="ttyUSB*", SYSFS{serial}=="A40014Oo", SYMLINK+="arduino0" KERNEL=="ttyUSB*", SYSFS{serial}=="A5001afj", SYMLINK+="arduino1" This sets the device name for my BitScope DSO, which uses an FTDI USB-serial device, to /dev/dso (thus it doesn't get accidentally picked up by arduino); it also creates symlinks from the default ttyUSB* name to arduino0 and arduino1 (no matter what order I plug them in). $ ls -l /dev/dso* /dev/ttyUSB* /dev/arduino* lrwxrwxrwx 1 root root 7 2007-07-09 23:25 /dev/arduino0 -> ttyUSB0 crw-rw---- 1 root dialout 188, 1 2007-07-09 22:57 /dev/dso crw-rw---- 1 root dialout 188, 0 2007-07-09 23:25 /dev/ttyUSB0 This is all good, except Arduino doesn't notice my symlinks - it only seems to detect devices named ttyS* or ttyUSB*. (I tried using NAME="arduino0" which renames the e.g. /dev/ttyUSB0 device to /dev/arduino0, but that didn't show up at all). Under Linux a good way to detect useful serial devices would be to look for character devices with appropriate major + minor device ids, e.g. http://www.lanana.org/docs/device-list/ Major Minor 4 64-255 UAR serial ports 188 0-255 USB serial (there are others for multi-port serial cards, etc). Thanks for the great work, Ben From tjarvi at qbang.org Tue Jul 17 13:35:35 2007 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 17 Jul 2007 19:35:35 -0000 Subject: [Rxtx] RXTX Eclipse Bundles In-Reply-To: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> References: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Message-ID: Hi Oberhuber I've been gone for 2 of the last 3 weeks and all of the weekends so I have had little time to restore the mail-list. I plan on restoring the mail-list this weekend. That involves parsing everyones email addresses from the join notifications since /var was lost. Do you want me to forward your email when I complete the task? On Tue, 17 Jul 2007, Oberhuber, Martin wrote: > Dear RXTX Community, > > it's been some time since I proposed creating > Eclipse Bundles and an Update Site for RXTX, > such that Eclipse users can consume it more > easily. > > I already sent a version of my bundles to this > list some time ago; I have since improved the > bundling, and all remaining issues are now > fixed, I consider this ready for public consumption: > > Version number is 2.1-7r3 (or 2.1.7.3_qualifier) > because compared to the original 2.1-7r2 package > there are the following differences which we needed: > > 1.) Solaris natives built against static libs -> no libgcc_s needed > 2.) Linux natives built without lockfiles -> easier use > 3.) Version debug printout to stdout can be disabled (RXTXCommDriver > v1.16.2.57) > > Other Fixes: > - Separate SDK / Runtime features > - sources are visible for debugging if SDK is installed > - single-file-jar for rxtx > - about.html / legal docu fixed > - RXTX icon added to about dialog > - providerName / fragmentName fixed > > Attached archive RXTX-Updatesite-I20070717-1829.zip > can be used in the following ways: > > a) From Eclipse, Help > Software Updates > Find and Install > > Search for New Features to Install > New Archived Update Site > - Direct to the Archive > - Install RXTX SDK or Runtime > > b) Extract the contents of the archive, and make it available > on a Webserver. Ideally, this should be available as > http://www.rxtx.org/eclipse/site.xml > and below -- then, "Check for Updates" would work from > inside Eclipse to get newer versions if made available. > > I also have a downloadable package available > (RXTX-SDK-I20070717-1829.zip). > > May I request the RXTX maintainers to have a look at this > contribution and make it available through either an FTP > server or the RXTX webserver. We would like to link to that > update site through our corresponding Eclipse Bugs at > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 > > Thanks, > -- > Martin Oberhuber > Wind River Systems, Inc. > Target Management Project Lead, DSDP PMC Member > http://www.eclipse.org/dsdp/tm > >> -----Original Message----- >> From: Oberhuber, Martin >> Sent: Wednesday, April 04, 2007 9:09 PM >> To: 'Trent Jarvi' >> Subject: RXTX Eclipse Bundles (was: RXTX consolidated license >> proposal) >> >> Hello Trent, >> >> since your consolidated license proposal looked >> stable, I went ahead and created Eclipse bundles >> from RXTX-2.1-7r2. >> >> You said that you wanted to put them on a server >> for download, such that people can have a look at >> it before it gets checked in. >> >> Items left to consider: >> * The plain RXTX library should be changed to be >> in a single JAR file rather than exploded. >> * Consider creating a second feature (rxtx-sdk) >> for the sources such that people using Update >> Manager do not need to get the sources if they >> don't want. >> * If we want branding info for RXTX in the Eclipse >> about box, some more files need to be added >> (about.ini, about.mappings, about.properties). >> * If we want a nice icon for RXTX in the about dialog >> and / or the update manager, this can be added. >> > From ajmas at sympatico.ca Tue Jul 17 18:19:50 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Wed, 18 Jul 2007 00:19:50 -0000 Subject: [Rxtx] Wiki and Spambots Message-ID: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From Martin.Oberhuber at windriver.com Tue Jul 17 20:50:27 2007 From: Martin.Oberhuber at windriver.com (Oberhuber, Martin) Date: Wed, 18 Jul 2007 02:50:27 -0000 Subject: [Rxtx] RXTX Eclipse Bundles Message-ID: <460801A4097E3D4CA04CC64EE64858480242A397@ism-mail03.corp.ad.wrs.com> Dear RXTX Community, it's been some time since I proposed creating Eclipse Bundles and an Update Site for RXTX, such that Eclipse users can consume it more easily. I already sent a version of my bundles to this list some time ago; I have since improved the bundling, and all remaining issues are now fixed, I consider this ready for public consumption: Version number is 2.1-7r3 (or 2.1.7.3_qualifier) because compared to the original 2.1-7r2 package there are the following differences which we needed: 1.) Solaris natives built against static libs -> no libgcc_s needed 2.) Linux natives built without lockfiles -> easier use 3.) Version debug printout to stdout can be disabled (RXTXCommDriver v1.16.2.57) Other Fixes: - Separate SDK / Runtime features - sources are visible for debugging if SDK is installed - single-file-jar for rxtx - about.html / legal docu fixed - RXTX icon added to about dialog - providerName / fragmentName fixed Attached archive RXTX-Updatesite-I20070717-1829.zip can be used in the following ways: a) From Eclipse, Help > Software Updates > Find and Install > Search for New Features to Install > New Archived Update Site - Direct to the Archive - Install RXTX SDK or Runtime b) Extract the contents of the archive, and make it available on a Webserver. Ideally, this should be available as http://www.rxtx.org/eclipse/site.xml and below -- then, "Check for Updates" would work from inside Eclipse to get newer versions if made available. I also have a downloadable package available (RXTX-SDK-I20070717-1829.zip). May I request the RXTX maintainers to have a look at this contribution and make it available through either an FTP server or the RXTX webserver. We would like to link to that update site through our corresponding Eclipse Bugs at https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336 Thanks, -- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm > -----Original Message----- > From: Oberhuber, Martin > Sent: Wednesday, April 04, 2007 9:09 PM > To: 'Trent Jarvi' > Subject: RXTX Eclipse Bundles (was: RXTX consolidated license > proposal) > > Hello Trent, > > since your consolidated license proposal looked > stable, I went ahead and created Eclipse bundles > from RXTX-2.1-7r2. > > You said that you wanted to put them on a server > for download, such that people can have a look at > it before it gets checked in. > > Items left to consider: > * The plain RXTX library should be changed to be > in a single JAR file rather than exploded. > * Consider creating a second feature (rxtx-sdk) > for the sources such that people using Update > Manager do not need to get the sources if they > don't want. > * If we want branding info for RXTX in the Eclipse > about box, some more files need to be added > (about.ini, about.mappings, about.properties). > * If we want a nice icon for RXTX in the about dialog > and / or the update manager, this can be added. > -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTX-Updatesite-I20070717-1829.zip Type: application/x-zip-compressed Size: 1140953 bytes Desc: RXTX-Updatesite-I20070717-1829.zip Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070718/87b48ffe/attachment-0165.bin From dan6 at comcast.net Fri Jul 20 18:38:27 2007 From: dan6 at comcast.net (dansix@pobox.com) Date: Sat, 21 Jul 2007 00:38:27 -0000 Subject: [Rxtx] need help using javax.comm Message-ID: <072120070038.6650.46A1558100084B31000019FA2206998499C0020E0B@comcast.net> I have a Java program that uses the sun Javax.comm API. I need to run this under Vista and would like to use Java 1.5 or 1.6. I see SUN no long offers the javax.comm API for windows at all. So is it possible to get my program working with RXTX? Here is what I have tried: - Got rxtx-2.0-7pre1-i386-pc-mingw32.zip -- copied rxtxSerial.dll to c:\Program Files\Java\jre1.5.0_12\bin -- copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs that should be the RXTXcomm.jar file, right? But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, no? Instead all I see is classes in the gnu.io package. So Im confused at this. Then I think that maybe there is some other jar file I need, perhaps the SUN comm.jar file? The SUN comm API web page mentions they are only distributing the comm.jar file since the 2.0.3 release is no longer distributed, and that the comm.jar, which contains the comm API java class files is being made available at the request of the RXTX project. The RxTx project uses the comm.jar class files, but provides their own native library components to provide support for other platforms. So I copied comm.jar (the generic one, not the solaris one) to to c:\Program Files\Java\jre1.5.0_12\lib\ext and attempted to run my java program again. This time I get these errors: Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver So its obvious Im doing something wrong, I didn't see anything in the email list archives that I thought would help. Maybe IM just confused. Do you have any idea what Im doing wrong? (its not vista or java 1.5, I got the same results with Java 1.4 on win XP). Thanks, Dan From arnab.bhaumik at gmail.com Tue Jul 31 13:23:10 2007 From: arnab.bhaumik at gmail.com (arnab bhaumik) Date: Tue, 31 Jul 2007 19:23:10 -0000 Subject: [Rxtx] 115.2kbps with rxtx Message-ID: hi all, i am wondering how to get this speed (115.2kbps) with rxtx???? serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); -------- at this method the first field (9600) is a type int . so it cant take 115200!!!!!!!!!!!!!! please help me arnab -- Arnab Bhaumik / VU2BPW Proprietor and Design Engineer, AB Telecomm. Rajchandrapur, PO- Ghoshpara(Bally). Howrah, West Bengal. Pin - 711227 Ph- (033) 26716307 Mob- 9433927150 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070731/41e1410d/attachment-0166.html From tom at tomoakley.net Thu Jul 5 12:26:16 2007 From: tom at tomoakley.net (tom at tomoakley.net) Date: Thu, 05 Jul 2007 20:26:16 +0200 Subject: [Rxtx] Can't read ASCII data via rxtx on Windows Message-ID: <15698657.97701183659975764.JavaMail.servlet@kundenserver> I?ve been using javax.comm since 2002 in several apps. I?ve tried rxtx on Windows XP Pro SP2 every 2 months or so but never got it to work. I can read serial data (ASCII) fine using javax.comm I can get rxtx to recognize a COM port. However, rxtx never receives SerialPortEvents or sees data in the serial port buffer even when I poll the buffer ? when I open HyperTerminal the data in the buffer spews through! An example simple reader is attached which both waits for events and polls the serial buffer every 2 seconds ? neither works. Please let me know if you have any ideas or if anyone else on the mailing list could help. Thanks in advance for any help. With regards, Blokeley -------------- next part -------------- A non-text attachment was scrubbed... Name: SimpleReadRxTx.java Type: application/octet-stream Size: 3398 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20070705/c639cf59/attachment-0175.obj From ajmas at sympatico.ca Tue Jul 17 21:25:57 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:25:57 -0400 Subject: [Rxtx] Wiki and Spambots References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: Hi, Looks like spambots are wrecking havoc on the Wiki. Had to correct: http://rxtx.qbang.org/wiki/index.php/Examples http://rxtx.qbang.org/wiki/index.php/ Two_way_communcation_with_the_serial_port Any chance we can add a captcha for account creation? Andre From ajmas at sympatico.ca Tue Jul 17 21:32:30 2007 From: ajmas at sympatico.ca (Andre-John Mas) Date: Tue, 17 Jul 2007 23:32:30 -0400 Subject: [Rxtx] Wiki and Spambots In-Reply-To: References: <2CBE96AE-2092-4CF6-848A-15E8D80D58F4@sympatico.ca> Message-ID: <682A9104-CED8-4BC2-92FE-A686784F5131@sympatico.ca> On 17-Jul-07, at 23:25 , Andre-John Mas wrote: > Hi, > > Looks like spambots are wrecking havoc on the Wiki. Had to correct: > > http://rxtx.qbang.org/wiki/index.php/Examples > http://rxtx.qbang.org/wiki/index.php/ > Two_way_communcation_with_the_serial_port > > Any chance we can add a captcha for account creation? > > Andre > Looks like the real immediate issue is that anonymous editing is allowed in the Wiki. Check this link for information on preventing anonymous edits: http://www.thejackol.com/2007/02/16/disable-anonymous-editing-in- mediawiki/ Andre From joshua at freedoment.com Wed Jul 18 17:11:55 2007 From: joshua at freedoment.com (Joshua Chambers) Date: Wed, 18 Jul 2007 16:11:55 -0700 Subject: [Rxtx] virtual serial port Message-ID: <1184800315.7708.3.camel@alvin> Hello! I have this nifty little box, and I am supposed to write the program that talks to it. It uses a serial interface, but actually has a usb port. In windows it uses usbser.sys, I believe, although you need a .INF file to tell it that. In linux, it simply pops right up as /dev/ttyACM0. Under both platforms, I am able to open up a serial port application and talk directly to the box, and get responses back, so communication with the box is working. However, I have not achieved it with rxtx yet. In linux, I enumerate the ports, and it simply isn't there. Only /dev/ttyS0 is there, even when I try to specify it as /dev/ttyACM0 specifically. Under windows, the port seems to exist, but throws a PortCurrentlyOwned exception when I try to open it, even though the port owner is null. I would really love to use open source libraries on this one, any help is vastly appreciated! Thank you, Joshua From hho at bibliotheca.dk Wed Jul 25 01:05:19 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 09:05:19 +0200 Subject: [Rxtx] ParallelPort and windows XP Message-ID: <000001c7ce8a$2993cfb0$6537a8c0@FSC041210070207> Does rxtx support the isPaperOut(), isPrinterBusy(), isPrinterError, isPrinterSelected(), isPrinterTimedOut() methods on windows? If yes, could someone provide me with an example of working code? I cannot get it to work (I get false on all methods no matter what), but writing to the parallel port works great. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20070725/04ca3b39/attachment-0209.html From dansix at pobox.com Wed Jul 25 05:16:29 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 07:16:29 -0400 Subject: [Rxtx] need help using RXTX Message-ID: <46A7310D.5030002@pobox.com> I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan From hho at bibliotheca.dk Wed Jul 25 05:30:56 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Wed, 25 Jul 2007 13:30:56 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7310D.5030002@pobox.com> References: <46A7310D.5030002@pobox.com> Message-ID: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> You need to replace imports/access to javax.comm.CommPort with gnu.io... I think the reason that rxtx doesnt just use javax.comm... packages hierarchy is that sun has moved on to another api. A move that rxtx people does not want to follow. -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Dan Sent: 25. juli 2007 13:16 To: rxtx at qbang.org Subject: [Rxtx] need help using RXTX I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should work with this, right? The install seems simple: I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip - copied rxtxSerial.dll and rxtxParallel.dll to c:\Program Files\Java\jre1.5.0_12\bin - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext Thats directly from the wiki web page and the install file, right? I run my java program, it starts up but doesn't find any serial ports and I get this error on the console: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPort Which is the error I would have expected if java can't find the classes it needs , the ones that should be the RXTXcomm.jar file. But if I look in the RXTXcomm.jar file I think I should see some classes in the javax.comm package, but all I see is classes in the gnu.io package. So Im confused at this. Help, what am I doing wrong? Thanks, Dan _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From dansix at pobox.com Wed Jul 25 15:49:26 2007 From: dansix at pobox.com (Dan) Date: Wed, 25 Jul 2007 17:49:26 -0400 Subject: [Rxtx] need help using RXTX In-Reply-To: <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> Message-ID: <46A7C566.8080702@pobox.com> I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to replace imports/access to javax.comm.CommPort with gnu.io... > I think the reason that rxtx doesnt just use javax.comm... packages > hierarchy is that sun has moved on to another api. A move that rxtx people > does not want to follow. > > -----Original Message----- > From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of > Dan > Sent: 25. juli 2007 13:16 > To: rxtx at qbang.org > Subject: [Rxtx] need help using RXTX > > I have a Java program that uses the sun javax.comm API. Rxtx 2.0 should > work with this, right? > > The install seems simple: > I got Got rxtx-2.0-7pre1-i386-pc-mingw32.zip > - copied rxtxSerial.dll and rxtxParallel.dll > to c:\Program Files\Java\jre1.5.0_12\bin > - copied RXTXcomm.jar to c:\Program Files\Java\jre1.5.0_12\lib\ext > > Thats directly from the wiki web page and the install file, right? I run > my java program, it starts up but doesn't find any serial ports and I > get this error on the console: > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/comm/CommPort > > Which is the error I would have expected if java can't find the classes > it needs , the ones that should be the RXTXcomm.jar file. But if I look > in the RXTXcomm.jar file I think I should see some classes in the > javax.comm package, but all I see is classes in the gnu.io > package. So Im confused at this. > > Help, what am I doing wrong? > > Thanks, > > Dan > > _______________________________________________ > Rxtx mailing list > Rxtx at qbang.org > http://mailman.qbang.org/mailman/listinfo/rxtx > > > From hho at bibliotheca.dk Thu Jul 26 00:59:40 2007 From: hho at bibliotheca.dk (Hans Hvelplund Odborg) Date: Thu, 26 Jul 2007 08:59:40 +0200 Subject: [Rxtx] need help using RXTX In-Reply-To: <46A7C566.8080702@pobox.com> References: <46A7310D.5030002@pobox.com> <000b01c7ceaf$44a3c290$6537a8c0@FSC041210070207> <46A7C566.8080702@pobox.com> Message-ID: <000801c7cf52$8c0defe0$6537a8c0@FSC041210070207> Oops I didn't see that you are using 2.0* It looks like the web page is wrong (or perhaps rather the 2.0 package). -----Original Message----- From: Dan [mailto:dansix at pobox.com] Sent: 25. juli 2007 23:49 To: rxtx at qbang.org Cc: Hans Hvelplund Odborg Subject: Re: [Rxtx] need help using RXTX I read on the rxtx web page that RXTX 2.0 is for use WITH Sun's CommAPI (namespace javax.comm) and that RXTX 2.1 is for use withOUT Sun's CommAPI (namespace gnu.io). Is this not the case anymore? Dan dansix at pobox.com Hans Hvelplund Odborg wrote: > You need to repl